Package org.opends.server.types
Class OpenDsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opends.server.types.OpenDsException
-
- All Implemented Interfaces:
Serializable
,LocalizableException
- Direct Known Subclasses:
ChangelogException
,CryptoManagerException
,EmbeddedDirectoryServerException
,IdentifiedException
,TaskClientException
@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=false, mayInvoke=true) public abstract class OpenDsException extends Exception implements LocalizableException
This class defines a base exception for OpenDS exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OpenDsException()
Creates a new identified exception.protected
OpenDsException(Throwable cause)
Creates a new identified exception with the provided information.protected
OpenDsException(LocalizableMessage message)
Creates a new identified exception with the provided information.protected
OpenDsException(LocalizableMessage message, Throwable cause)
Creates a new identified exception with the provided information.protected
OpenDsException(OpenDsException cause)
Constructs a new instance from anotherOpenDsException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizableMessage
getMessageObject()
Returns the message that explains the problem that occurred.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OpenDsException
protected OpenDsException()
Creates a new identified exception.
-
OpenDsException
protected OpenDsException(OpenDsException cause)
Constructs a new instance from anotherOpenDsException
. This constructor sets the message to be that ofcause
.- Parameters:
cause
- exception whose message will be used for this exception's message.
-
OpenDsException
protected OpenDsException(LocalizableMessage message)
Creates a new identified exception with the provided information.- Parameters:
message
- The message that explains the problem that occurred.
-
OpenDsException
protected OpenDsException(Throwable cause)
Creates a new identified exception with the provided information.- Parameters:
cause
- The underlying cause that triggered this exception.
-
OpenDsException
protected OpenDsException(LocalizableMessage message, Throwable cause)
Creates a new identified exception with the provided information.- Parameters:
message
- The message that explains the problem that occurred.cause
- The underlying cause that triggered this exception.
-
-
Method Detail
-
getMessageObject
public LocalizableMessage getMessageObject()
Returns the message that explains the problem that occurred.- Specified by:
getMessageObject
in interfaceLocalizableException
- Returns:
- LocalizableMessage of the problem
-
-