Language

JniEnvironment.Exceptions.Throw Method

Definition

Overloads

Name Description
Throw(JniObjectReference)

Makes a Java throwable pending, reporting native failure as a managed exception.

Throw(Exception)

Raises a JavaException's peer, or a Java proxy for another managed exception.

Throw(JniObjectReference)

Makes a Java throwable pending, reporting native failure as a managed exception.

public static void Throw(Java.Interop.JniObjectReference toThrow);
static member Throw : Java.Interop.JniObjectReference -> unit

Parameters

toThrow
JniObjectReference

A valid reference to the Java throwable to make pending.

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

Throw(Exception)

Raises a JavaException's peer, or a Java proxy for another managed exception.

public static void Throw(Exception e);
static member Throw : Exception -> unit

Parameters

e
Exception

The non-null managed exception to raise in Java.

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