RuntimeException RuntimeException Constructors

Definition

Overloads

RuntimeException()

Constructs a new RuntimeException that includes the current stack trace.

RuntimeException(Throwable) RuntimeException(Throwable)

Constructs a new RuntimeException with the current stack trace and the specified cause.

RuntimeException(String) RuntimeException(String)

Constructs a new RuntimeException with the current stack trace and the specified detail message.

RuntimeException(IntPtr, JniHandleOwnership) RuntimeException(IntPtr, JniHandleOwnership)

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

RuntimeException(String, Throwable) RuntimeException(String, Throwable)

Constructs a new RuntimeException with the current stack trace, the specified detail message and the specified cause.

RuntimeException(String, Throwable, Boolean, Boolean) RuntimeException(String, Throwable, Boolean, Boolean)

RuntimeException()

Constructs a new RuntimeException that includes the current stack trace.

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

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.

RuntimeException(Throwable) RuntimeException(Throwable)

Constructs a new RuntimeException with the current stack trace and the specified cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public RuntimeException (Java.Lang.Throwable cause);
new Java.Lang.RuntimeException : Java.Lang.Throwable -> Java.Lang.RuntimeException

Parameters

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.

RuntimeException(String) RuntimeException(String)

Constructs a new RuntimeException with the current stack trace and the specified detail message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public RuntimeException (string message);
new Java.Lang.RuntimeException : string -> Java.Lang.RuntimeException

Parameters

message
String String

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.

RuntimeException(IntPtr, JniHandleOwnership) RuntimeException(IntPtr, JniHandleOwnership)

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

protected RuntimeException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.RuntimeException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.RuntimeException

Parameters

javaReference
IntPtr IntPtr

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

transfer
JniHandleOwnership 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.

RuntimeException(String, Throwable) RuntimeException(String, Throwable)

Constructs a new RuntimeException with the current stack trace, the specified detail message and the specified cause.

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

Parameters

message
String String

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.

RuntimeException(String, Throwable, Boolean, Boolean) RuntimeException(String, Throwable, Boolean, Boolean)

Warning

This API is now obsolete.

[System.Obsolete("This member does not exist on Android. It was erroneously bound.", true)]
protected RuntimeException (string p0, Java.Lang.Throwable p1, bool p2, bool p3);
new Java.Lang.RuntimeException : string * Java.Lang.Throwable * bool * bool -> Java.Lang.RuntimeException

Parameters

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