ExceptionInInitializerError Constructors
Definition
Important
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.
Overloads
| ExceptionInInitializerError() |
Constructs an |
| ExceptionInInitializerError(Throwable) |
Constructs a new |
| ExceptionInInitializerError(String) |
Constructs an |
| ExceptionInInitializerError(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ExceptionInInitializerError()
Constructs an ExceptionInInitializerError with
null as its detail message string and with no saved
throwable object.
[Android.Runtime.Register(".ctor", "()V", "")]
public ExceptionInInitializerError();
- Attributes
Remarks
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.
Java documentation for java.lang.ExceptionInInitializerError.ExceptionInInitializerError().
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.
Applies to
ExceptionInInitializerError(Throwable)
Constructs a new ExceptionInInitializerError class by
saving a reference to the Throwable object thrown for
later retrieval by the #getException() method.
[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public ExceptionInInitializerError(Java.Lang.Throwable? thrown);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Lang.ExceptionInInitializerError : Java.Lang.Throwable -> Java.Lang.ExceptionInInitializerError
Parameters
- thrown
- Throwable
The exception thrown
- Attributes
Remarks
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.
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.
Applies to
ExceptionInInitializerError(String)
Constructs an ExceptionInInitializerError with the specified detail
message string.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public ExceptionInInitializerError(string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Lang.ExceptionInInitializerError : string -> Java.Lang.ExceptionInInitializerError
Parameters
- s
- String
the detail message
- Attributes
Remarks
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.
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.
Applies to
ExceptionInInitializerError(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ExceptionInInitializerError(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.ExceptionInInitializerError : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.ExceptionInInitializerError
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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.