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 *      Copyright 2014 ForgeRock AS
025 */
026package org.opends.server.replication.server.changelog.file;
027
028import org.forgerock.i18n.LocalizableMessage;
029import org.opends.server.replication.server.changelog.api.ChangelogException;
030
031/**
032 * Exception thrown when a record can't be decoded properly.
033 */
034public class DecodingException extends ChangelogException
035{
036  private static final long serialVersionUID = 5629692522662643737L;
037
038  /**
039   * Creates a new decoding exception with the provided information.
040   *
041   * @param message
042   *          The message that explains the problem that occurred.
043   */
044  public DecodingException(LocalizableMessage message)
045  {
046    super(message);
047  }
048
049  /**
050   * Creates a new decoding exception with the provided information.
051   *
052   * @param cause
053   *          The underlying cause that triggered this exception.
054   */
055  public DecodingException(Throwable cause)
056  {
057    super(cause);
058  }
059
060  /**
061   * Creates a new decoding exception with the provided information.
062   *
063   * @param message
064   *          The message that explains the problem that occurred.
065   * @param cause
066   *          The underlying cause that triggered this exception.
067   */
068  public DecodingException(LocalizableMessage message, Throwable cause)
069  {
070    super(message, cause);
071  }
072}