001/*
002 * CDDL HEADER START
003 *
004 * The contents of this file are subject to the terms of the
005 * Common Development and Distribution License, Version 1.0 only
006 * (the "License").  You may not use this file except in compliance
007 * with the License.
008 *
009 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
010 * or http://forgerock.org/license/CDDLv1.0.html.
011 * See the License for the specific language governing permissions
012 * and limitations under the License.
013 *
014 * When distributing Covered Code, include this CDDL HEADER in each
015 * file and include the License file at legal-notices/CDDLv1_0.txt.
016 * If applicable, add the following below this CDDL HEADER, with the
017 * fields enclosed by brackets "[]" replaced with your own identifying
018 * information:
019 *      Portions Copyright [yyyy] [name of copyright owner]
020 *
021 * CDDL HEADER END
022 *
023 *
024 *      Portions Copyright 2013-2014 ForgeRock AS
025 */
026package org.opends.server.replication.server.changelog.api;
027
028import org.forgerock.i18n.LocalizableMessage;
029import org.opends.server.types.OpenDsException;
030
031/**
032 * This class define an Exception that must be used when some error condition
033 * was detected in the changelog database that cannot be recovered
034 * automatically.
035 */
036public class ChangelogException extends OpenDsException
037{
038
039  /** Generated serialization ID. */
040  private static final long serialVersionUID = -8444837053769661394L;
041
042  /**
043   * Creates a new changelog exception with the provided information.
044   *
045   * @param message
046   *          The message that explains the problem that occurred.
047   */
048  public ChangelogException(LocalizableMessage message)
049  {
050    super(message);
051  }
052
053  /**
054   * Creates a new changelog exception with the provided information.
055   *
056   * @param cause
057   *          The underlying cause that triggered this exception.
058   */
059  public ChangelogException(Throwable cause)
060  {
061    super(cause);
062  }
063
064  /**
065   * Creates a new identified exception with the provided information.
066   *
067   * @param message
068   *          The message that explains the problem that occurred.
069   * @param cause
070   *          The underlying cause that triggered this exception.
071   */
072  public ChangelogException(LocalizableMessage message, Throwable cause)
073  {
074    super(message, cause);
075  }
076}