Language

JniRuntime.OnUserUnhandledException(JniTransition, Exception) Method

Definition

Handles an exception thrown by a managed JNI callback.

public virtual void OnUserUnhandledException(ref Java.Interop.JniTransition transition, Exception e);
abstract member OnUserUnhandledException : JniTransition * Exception -> unit
override this.OnUserUnhandledException : JniTransition * Exception -> unit

Parameters

transition
JniTransition

The current callback transition in which an exception can be retained.

e
Exception

The exception thrown by the managed callback.

Remarks

The base implementation stores e on transition and notifies the debugger. An override can handle the exception without forwarding it to Java.

Applies to