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.types;
018
019import org.forgerock.i18n.LocalizableMessage;
020
021
022
023
024/**
025 * This class defines an exception that may be thrown if a problem
026 * occurs while trying to initialize a Directory Server component.
027 */
028@org.opends.server.types.PublicAPI(
029     stability=org.opends.server.types.StabilityLevel.UNCOMMITTED,
030     mayInstantiate=true,
031     mayExtend=false,
032     mayInvoke=true)
033public final class InitializationException
034       extends IdentifiedException
035{
036  /**
037   * The serial version identifier required to satisfy the compiler
038   * because this class extends <CODE>java.lang.Exception</CODE>,
039   * which implements the <CODE>java.io.Serializable</CODE> interface.
040   * This value was generated using the <CODE>serialver</CODE>
041   * command-line utility included with the Java SDK.
042   */
043  private static final long serialVersionUID = -6121147544833914730L;
044
045
046
047
048
049  /**
050   * Creates a new initialization exception with the provided message.
051   *
052   * @param  message    The message that explains the problem that
053   *                    occurred.
054   */
055  public InitializationException(LocalizableMessage message)
056  {
057    super(message);
058  }
059
060
061
062  /**
063   * Creates a new initialization exception with the provided message
064   * and root cause.
065   *
066   * @param  message    The message that explains the problem that
067   *                    occurred.
068   * @param  cause      The exception that was caught to trigger this
069   *                    exception.
070   */
071  public InitializationException(LocalizableMessage message,
072                                 Throwable cause)
073  {
074    super(message, cause);
075  }
076
077}
078