001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2006-2008 Sun Microsystems, Inc.
015 * Portions Copyright 2014 ForgeRock AS.
016 */
017package org.opends.server.config;
018import org.forgerock.i18n.LocalizableMessage;
019
020
021
022import org.opends.server.types.IdentifiedException;
023
024
025
026/**
027 * This class defines an exception that may be thrown during the course of
028 * interactions with the Directory Server configuration.
029 */
030@org.opends.server.types.PublicAPI(
031     stability=org.opends.server.types.StabilityLevel.UNCOMMITTED,
032     mayInstantiate=true,
033     mayExtend=false,
034     mayInvoke=true)
035public final class ConfigException
036       extends IdentifiedException
037{
038  /**
039   * The serial version identifier required to satisfy the compiler because this
040   * class extends <CODE>java.lang.Exception</CODE>, which implements the
041   * <CODE>java.io.Serializable</CODE> interface.  This value was generated
042   * using the <CODE>serialver</CODE> command-line utility included with the
043   * Java SDK.
044   */
045  private static final long serialVersionUID = 3135563348838654570L;
046
047
048
049
050
051  /**
052   * Creates a new configuration exception with the provided message.
053   *
054   * @param  message    The message to use for this configuration exception.
055   */
056  public ConfigException(LocalizableMessage message)
057  {
058    super(message);
059  }
060
061
062
063  /**
064   * Creates a new configuration exception with the provided message and
065   * underlying cause.
066   *
067   * @param  message    The message to use for this configuration exception.
068   * @param  cause      The underlying cause that triggered this configuration
069   *                    exception.
070   */
071  public ConfigException(LocalizableMessage message, Throwable cause)
072  {
073    super(message, cause);
074  }
075
076
077
078}
079