- Class ExceptionInInitializerError
- Constructor Summary
- Method Summary
- Methods declared in class java.lang.Throwable
- Methods declared in class java.lang.Object
- Constructor Details
- ExceptionInInitializerError
- ExceptionInInitializerError
- ExceptionInInitializerError
- Method Details
- getException
- Exception InInitializer Error Class
- Remarks
- Constructors
- Fields
- Properties
- Methods
- Explicit Interface Implementations
- Extension Methods
Class ExceptionInInitializerError
Signals that an unexpected exception has occurred in a static initializer. An ExceptionInInitializerError is thrown to indicate that an exception occurred during evaluation of a static initializer or the initializer for a static variable.
Constructor Summary
Constructs an ExceptionInInitializerError with null as its detail message string and with no saved throwable object.
Constructs a new ExceptionInInitializerError class by saving a reference to the Throwable object thrown for later retrieval by the getException() method.
Method Summary
Returns the exception that occurred during a static initialization that caused this error to be created.
Methods declared in class java.lang.Throwable
Methods declared in class java.lang.Object
Constructor Details
ExceptionInInitializerError
Constructs an ExceptionInInitializerError with null as its detail message string and with no saved throwable object. A detail message is a String that describes this particular exception.
ExceptionInInitializerError
Constructs a new ExceptionInInitializerError class by saving a reference to the Throwable object thrown for later retrieval by the getException() method. The detail message string is set to null .
ExceptionInInitializerError
Constructs an ExceptionInInitializerError with the specified detail message string. A detail message is a String that describes this particular exception. The detail message string is saved for later retrieval by the Throwable.getMessage() method. There is no saved throwable object.
Method Details
getException
Returns the exception that occurred during a static initialization that caused this error to be created.
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
Exception InInitializer Error Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Signals that an unexpected exception has occurred in a static initializer.
[Android.Runtime.Register("java/lang/ExceptionInInitializerError", DoNotGenerateAcw=true)] public class ExceptionInInitializerError : Java.Lang.LinkageError
[] type ExceptionInInitializerError = class inherit LinkageError
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Constructs an ExceptionInInitializerError with null as its detail message string and with no saved throwable object.
A constructor used when creating managed representations of JNI objects; called by the runtime.
Constructs an ExceptionInInitializerError with the specified detail message string.
Constructs a new ExceptionInInitializerError class by saving a reference to the Throwable object thrown for later retrieval by the #getException() method.
Fields
Properties
Returns the cause of this throwable or null if the cause is nonexistent or unknown.
Returns the exception that occurred during a static initialization that caused this error to be created.
The handle to the underlying Android instance.
Creates a localized description of this throwable.
Returns the detail message string of this throwable.
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
Methods
Appends the specified exception to the exceptions that were suppressed in order to deliver this exception.
Fills in the execution stack trace.
Provides programmatic access to the stack trace information printed by #printStackTrace() .
Returns an array containing all of the exceptions that were suppressed, typically by the try -with-resources statement, in order to deliver this exception.
Initializes the cause of this throwable to the specified value.
Prints this throwable and its backtrace to the standard error stream.
Prints this throwable and its backtrace to the specified print stream.
Prints this throwable and its backtrace to the specified print writer.
Sets the stack trace elements that will be returned by #getStackTrace() and printed by #printStackTrace() and related methods.
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Throwable) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Throwable) |
IJavaPeerable.Finalized() | (Inherited from Throwable) |
IJavaPeerable.JniManagedPeerState | (Inherited from Throwable) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Throwable) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Throwable) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Throwable) |
Extension Methods
Performs an Android runtime-checked type conversion.