Language

AndroidRuntimeException Constructors

Definition

Overloads

Name Description
AndroidRuntimeException()

Creates an exception with no detail message.

AndroidRuntimeException(Exception)

Creates an exception with the specified cause.

AndroidRuntimeException(String)

Creates an exception with the specified detail message.

AndroidRuntimeException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AndroidRuntimeException(String, Throwable)

Creates an exception with the specified detail message and cause.

AndroidRuntimeException()

Creates an exception with no detail message.

[Android.Runtime.Register(".ctor", "()V", "")]
public AndroidRuntimeException();
Attributes

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.

Applies to

AndroidRuntimeException(Exception)

Creates an exception with the specified cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Exception;)V", "")]
public AndroidRuntimeException(Java.Lang.Exception? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Exception;)V", "")>]
new Android.Util.AndroidRuntimeException : Java.Lang.Exception -> Android.Util.AndroidRuntimeException

Parameters

cause
Exception

The exception to associate as the cause.

Attributes

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.

Applies to

AndroidRuntimeException(String)

Creates an exception with the specified detail message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public AndroidRuntimeException(string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Util.AndroidRuntimeException : string -> Android.Util.AndroidRuntimeException

Parameters

name
String

The detail message for the exception.

Attributes

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.

Applies to

AndroidRuntimeException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AndroidRuntimeException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Util.AndroidRuntimeException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Util.AndroidRuntimeException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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.

Applies to

AndroidRuntimeException(String, Throwable)

Creates an exception with the specified detail message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public AndroidRuntimeException(string? name, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Android.Util.AndroidRuntimeException : string * Java.Lang.Throwable -> Android.Util.AndroidRuntimeException

Parameters

name
String

The detail message for the exception.

cause
Throwable

The cause to associate with this exception.

Attributes

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.

Applies to