JniRuntime.OnUserUnhandledException(JniTransition, Exception) 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.
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.
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.