JniEnvironment.Exceptions Class
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.
Inspects pending Java exceptions and raises exceptions through JNI.
public static class JniEnvironment.Exceptions
type JniEnvironment.Exceptions = class
- Inheritance
-
JniEnvironment.Exceptions
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.
Methods
| Name | Description |
|---|---|
| ExceptionCheck() |
Tests for a pending Java exception without creating a throwable reference. |
| ExceptionClear() |
Clears the current thread's pending Java exception. |
| ExceptionDescribe() |
Prints the pending Java exception and its stack trace, then clears the pending exception. |
| ExceptionOccurred() |
Gets the current pending Java throwable without clearing it. |
| FatalError(String) |
Invokes the JVM's unrecoverable fatal-error operation. |
| Throw(Exception) |
Raises a JavaException's peer, or a Java proxy for another managed exception. |
| Throw(JniObjectReference) |
Makes a Java throwable pending, reporting native failure as a managed exception. |
| ThrowNew(JniObjectReference, String) |
Creates a pending Java throwable with a message, reporting native failure as a managed exception. |