1 *java.lang.ExceptionInInitializerError* *ExceptionInInitializerError* Signals th
3 public class ExceptionInInitializerError
4 extends |java.lang.LinkageError|
6 |java.lang.ExceptionInInitializerError_Description|
7 |java.lang.ExceptionInInitializerError_Fields|
8 |java.lang.ExceptionInInitializerError_Constructors|
9 |java.lang.ExceptionInInitializerError_Methods|
11 ================================================================================
13 *java.lang.ExceptionInInitializerError_Constructors*
14 |java.lang.ExceptionInInitializerError()|Constructs an ExceptionInInitializerEr
15 |java.lang.ExceptionInInitializerError(String)|Constructs an ExceptionInInitial
16 |java.lang.ExceptionInInitializerError(Throwable)|Constructs a new ExceptionInI
18 *java.lang.ExceptionInInitializerError_Methods*
19 |java.lang.ExceptionInInitializerError.getCause()|Returns the cause of this err
20 |java.lang.ExceptionInInitializerError.getException()|Returns the exception tha
22 *java.lang.ExceptionInInitializerError_Description*
24 Signals that an unexpected exception has occurred in a static initializer. An
25 ExceptionInInitializerError is thrown to indicate that an exception occurred
26 during evaluation of a static initializer or the initializer for a static
29 As of release 1.4, this exception has been retrofitted to conform to the
30 general purpose exception-chaining mechanism. The "saved throwable object" that
31 may be provided at construction time and accessed via the
32 (|java.lang.ExceptionInInitializerError|) method is now known as the cause, and
33 may be accessed via the (|java.lang.Throwable|) method, as well as the
34 aforementioned "legacy method."
38 *java.lang.ExceptionInInitializerError()*
40 public ExceptionInInitializerError()
42 Constructs an ExceptionInInitializerError with null as its detail message
43 string and with no saved throwable object. A detail message is a String that
44 describes this particular exception.
47 *java.lang.ExceptionInInitializerError(String)*
49 public ExceptionInInitializerError(java.lang.String s)
51 Constructs an ExceptionInInitializerError with the specified detail message
52 string. A detail message is a String that describes this particular exception.
53 The detail message string is saved for later retrieval by the
54 (|java.lang.Throwable|) method. There is no saved throwable object.
56 s - the detail message
58 *java.lang.ExceptionInInitializerError(Throwable)*
60 public ExceptionInInitializerError(java.lang.Throwable thrown)
62 Constructs a new ExceptionInInitializerError class by saving a reference to the
63 Throwable object thrown for later retrieval by the
64 (|java.lang.ExceptionInInitializerError|) method. The detail message string is
67 thrown - The exception thrown
69 *java.lang.ExceptionInInitializerError.getCause()*
71 public |java.lang.Throwable| getCause()
73 Returns the cause of this error (the exception that occurred during a static
74 initialization that caused this error to be created).
78 Returns: the cause of this error or null if the cause is nonexistent or unknown.
80 *java.lang.ExceptionInInitializerError.getException()*
82 public |java.lang.Throwable| getException()
84 Returns the exception that occurred during a static initialization that caused
85 this error to be created.
87 This method predates the general-purpose exception chaining facility. The
88 (|java.lang.Throwable|) method is now the preferred means of obtaining this
93 Returns: the saved throwable object of this ExceptionInInitializerError, or null if this
94 ExceptionInInitializerError has no saved throwable object.