Android
java.lang
public class

java.lang.ExceptionInInitializerError

java.lang.Object
java.lang.Throwable Serializable
java.lang.Error
java.lang.LinkageError
java.lang.ExceptionInInitializerError

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

Summary

Public Constructors

            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.

Public Methods

          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
Methods inherited from class java.lang.Object

Details

Public Constructors

public ExceptionInInitializerError()

Constructs a new instance of this class with its walkback filled in.

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.

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.

Public Methods

public Throwable getCause()

Returns the cause of this Throwable, or null if there is no cause.

Returns

  • Throwable The receiver's cause.

public Throwable getException()

Returns the exception which was passed in when the instance was created.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56