java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Error | |||
↳ | java.lang.LinkageError | |||
↳ | java.lang.ExceptionInInitializerError |
Thrown when an exception occurs during class initialization.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new
ExceptionInInitializerError
that includes the
current stack trace.
|
||||||||||
|
Constructs a new
ExceptionInInitializerError
with the current
stack trace and the specified detail message.
|
||||||||||
|
Constructs a new
ExceptionInInitializerError
with the current
stack trace and the specified cause.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the cause of this error, or
null
if there is no cause.
|
||||||||||
|
Returns the exception that is the cause of this error.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
|
|||||||||||
From class
java.lang.Object
|
Constructs a new
ExceptionInInitializerError
that includes the
current stack trace.
Constructs a new
ExceptionInInitializerError
with the current
stack trace and the specified detail message.
detailMessage | the detail message for this error. |
---|
Constructs a new
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. |
---|
Returns the cause of this error, or
null
if there is no cause.
Returns the exception that is the cause of this error.