public class AlreadyInitializedException extends IllegalStateException
AlreadyInitializedException
may be thrown when an object has been created and another
instance cannot conceivably be created again.IllegalStateException
,
Serialized FormConstructor and Description |
---|
AlreadyInitializedException(String detailMessage)
Constructs a new
AlreadyInitializedException with the specified detail message. |
AlreadyInitializedException(String message,
Throwable cause)
Constructs a new
AlreadyInitializedException with the specified detail message and
cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AlreadyInitializedException(String detailMessage)
AlreadyInitializedException
with the specified detail message.
The cause is not initialized and may subsequently be initialized by a call to
Throwable.initCause(Throwable)
.detailMessage
- The detail message for this exception. This is saved for later retrieval by the
Throwable.getMessage()
method.public AlreadyInitializedException(String message, Throwable cause)
AlreadyInitializedException
with the specified detail message and
cause.
Note that the detail message associated with cause
is not automatically
incorporated in this already initialized exception's detail message.message
- The detail message for this exception. This is saved for later retrieval by the
Throwable.getMessage()
method.cause
- The cause of this exception. This is saved for later retrieval by the
Throwable.getCause()
method. May be null
which indicates that the
cause is nonexistent or unknown.