FileDocCategorySizeDatePackage
ExceptionInInitializerError.javaAPI DocAndroid 1.5 API2712Wed May 06 22:41:04 BST 2009java.lang

ExceptionInInitializerError

public class ExceptionInInitializerError extends LinkageError
Thrown when an exception occurs during class initialization.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private Throwable
exception
Constructors Summary
public ExceptionInInitializerError()
Constructs a new {@code ExceptionInInitializerError} that includes the current stack trace.

since
Android 1.0


                        
      
        super();
        initCause(null);
    
public ExceptionInInitializerError(String detailMessage)
Constructs a new {@code ExceptionInInitializerError} with the current stack trace and the specified detail message.

param
detailMessage the detail message for this error.
since
Android 1.0

        super(detailMessage);
        initCause(null);
    
public ExceptionInInitializerError(Throwable exception)
Constructs a new {@code ExceptionInInitializerError} with the current stack trace and the specified cause. The exception should be the one which originally occurred in the class initialization code.

param
exception the exception that caused this error.

        super();
        this.exception = exception;
        initCause(exception);
    
Methods Summary
public java.lang.ThrowablegetCause()
Returns the cause of this error, or {@code null} if there is no cause.

return
the exception that caused this error.
since
Android 1.0

        return exception;
    
public java.lang.ThrowablegetException()
Returns the exception that is the cause of this error.

return
the exception that caused this error.
since
Android 1.0

        return exception;