Language

JniEnvironment.Exceptions.ThrowNew(JniObjectReference, String) Method

Definition

Creates a pending Java throwable with a message, reporting native failure as a managed exception.

public static void ThrowNew(Java.Interop.JniObjectReference klass, string message);
static member ThrowNew : Java.Interop.JniObjectReference * string -> unit

Parameters

klass
JniObjectReference

A valid reference to the Java throwable class to instantiate.

message
String

The non-null message for the new Java throwable.

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