java.lang
Class ExceptionInInitializerError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byjava.lang.LinkageError
              extended byjava.lang.ExceptionInInitializerError
All Implemented Interfaces:
Serializable

public class ExceptionInInitializerError
extends LinkageError

This error is thrown when an exception occurs during class initialization.

See Also:
Serialized Form

Constructor Summary
ExceptionInInitializerError()
          Constructs a new instance of this class with its walkback filled in.
ExceptionInInitializerError(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
ExceptionInInitializerError(Throwable exception)
          Constructs a new instance of this class with its walkback and exception filled in.
 
Method Summary
 Throwable getCause()
          Answers the cause of this Throwable, or null if there is no cause.
 Throwable getException()
          Answers the exception which was passed in when the instance was created.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionInInitializerError

public ExceptionInInitializerError()
Constructs a new instance of this class with its walkback filled in.


ExceptionInInitializerError

public ExceptionInInitializerError(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.

ExceptionInInitializerError

public ExceptionInInitializerError(Throwable exception)
Constructs a new instance of this class with its walkback and exception filled in. The exception should be the one which originally occured in the class initialization code.

Parameters:
exception - Throwable The exception which caused the problem.
Method Detail

getException

public Throwable getException()
Answers the exception which was passed in when the instance was created.


getCause

public Throwable getCause()
Answers the cause of this Throwable, or null if there is no cause.

Overrides:
getCause in class Throwable
Returns:
Throwable The receiver's cause.