Language

AndroidException Constructors

Definition

Overloads

Name Description
AndroidException()

Creates an exception with no detail message.

AndroidException(Exception)

Creates an exception with the specified cause.

AndroidException(String)

Creates an exception with the specified detail message.

AndroidException(IntPtr, JniHandleOwnership)

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

AndroidException(String, Throwable)

Creates an exception with the specified detail message and cause.

AndroidException()

Creates an exception with no detail message.

[Android.Runtime.Register(".ctor", "()V", "")]
public AndroidException();
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

AndroidException(Exception)

Creates an exception with the specified cause.

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

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

AndroidException(String)

Creates an exception with the specified detail message.

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

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

AndroidException(IntPtr, JniHandleOwnership)

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

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

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

AndroidException(String, Throwable)

Creates an exception with the specified detail message and cause.

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

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