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