Answer:
JNI exceptions are handled by using the following:
* Throw( )
Throws an existing exception object. Used in native methods to rethrow an exception.
* ThrowNew( )
Creates a new exception object and throws.
* ExceptionOccurred( )
Determines the exception status of throws and not yet cleared.
* ExceptionDescribe( )
Displays the exception and stack trace
* ExceptionClear( )
A pending exception is cleared.
* FatalError( )
Causes a fatal error to raise and does not return.
* Throw( )
Throws an existing exception object. Used in native methods to rethrow an exception.
* ThrowNew( )
Creates a new exception object and throws.
* ExceptionOccurred( )
Determines the exception status of throws and not yet cleared.
* ExceptionDescribe( )
Displays the exception and stack trace
* ExceptionClear( )
A pending exception is cleared.
* FatalError( )
Causes a fatal error to raise and does not return.
Previous Question | Next Question |
What is Native Interface in JAVA? | What is Java Native Interface (JNI)? |