public class ExceptionInInitializerError extends LinkageError
| Constructor and Description |
|---|
ExceptionInInitializerError()
Constructs a new
ExceptionInInitializerError that includes the
current stack trace. |
ExceptionInInitializerError(String detailMessage)
Constructs a new
ExceptionInInitializerError with the current
stack trace and the specified detail message. |
ExceptionInInitializerError(Throwable exception)
Constructs a new
ExceptionInInitializerError with the current
stack trace and the specified cause. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of this error, or
null if there is no cause. |
Throwable |
getException()
Returns the exception that is the cause of this error.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ExceptionInInitializerError()
ExceptionInInitializerError that includes the
current stack trace.public ExceptionInInitializerError(String detailMessage)
ExceptionInInitializerError with the current
stack trace and the specified detail message.detailMessage - the detail message for this error.public ExceptionInInitializerError(Throwable exception)
ExceptionInInitializerError with the current
stack trace and the specified cause. The exception should be the one
which originally occurred in the class initialization code.exception - the exception that caused this error.public Throwable getException()