JniEnvironment.Exceptions.ThrowNew(JniObjectReference, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.