|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.ExceptionInInitializerError
public class ExceptionInInitializerError
An ExceptionInInitializerError is thrown when an uncaught
exception has occurred in a static initializer or the initializer for a
static variable. In general, this wraps only RuntimeExceptions, since the
compiler does not allow a checked exception to be uncaught in an
initializer. This exception only occurs during reflection, when a class
is initialized as part of another action.
| Constructor Summary | |
|---|---|
ExceptionInInitializerError()
Create an error without a message. |
|
ExceptionInInitializerError(String s)
Create an error with a message. |
|
ExceptionInInitializerError(Throwable t)
Creates an error an saves a reference to the Throwable
object. |
|
| Method Summary | |
|---|---|
Throwable |
getCause()
Return the exception that cause this error to be created. |
Throwable |
getException()
Return the exception that caused this error to be created. |
| Methods inherited from class java.lang.Throwable |
|---|
getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionInInitializerError()
public ExceptionInInitializerError(String s)
s - the messagepublic ExceptionInInitializerError(Throwable t)
Throwable
object. The message string is null.
t - the exception thrown| Method Detail |
|---|
public Throwable getException()
Throwable.getCause().
public Throwable getCause()
getCause in class Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||