Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

25.20 java.lang.ExceptionInInitializerError (JDK 1.1)

This error is thrown by the Java Virtual Machine when an exception occurs in the static initializer of a class. You can use the getException() method to obtain the Throwable object that was thrown from the initializer.

public class ExceptionInInitializerError extends LinkageError {
    // Public Constructors
            public ExceptionInInitializerError();
            public ExceptionInInitializerError(Throwable thrown);
            public ExceptionInInitializerError(String s);
    // Public Instance Methods
            public Throwable getException();
}

Hierarchy:

Object->Throwable(Serializable)->Error->LinkageError->ExceptionInInitializerError


Previous Home Next
java.lang.Exception (JDK 1.0) Book Index java.lang.Float (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java