JniRuntime.GetExceptionForThrowable 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.
Converts a Java throwable reference to a managed exception through the value manager.
public virtual Exception? GetExceptionForThrowable(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options);
abstract member GetExceptionForThrowable : JniObjectReference * Java.Interop.JniObjectReferenceOptions -> Exception
override this.GetExceptionForThrowable : JniObjectReference * Java.Interop.JniObjectReferenceOptions -> Exception
Parameters
- reference
- JniObjectReference
The Java throwable reference to convert.
- options
- JniObjectReferenceOptions
Reference transfer options passed to the value manager.
Returns
The managed exception returned by the value manager, or null for a null Java reference.
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.