Build 1.0_r1(from source)

java.lang
Class ExceptionInInitializerError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.LinkageError
              extended by java.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(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()
          Returns the cause of this Throwable, or null if there is no cause.
 Throwable getException()
          Returns 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
clone, equals, finalize, 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(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 occurred in the class initialization code.

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

getException

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


getCause

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

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature