Exception class that can be used to wrap a Java generated exception.
More...
#include <kanzi/java/java_exception.hpp>
|
| | JavaException (JNIEnv *jenv, jthrowable throwable) |
| | Construct exception from a Java throwable. More...
|
| |
| | JavaException (const char *msg) |
| | More general constructor for handling as a java.lang.RuntimeException. More...
|
| |
| void | throwJavaException (JNIEnv *jenv) const |
| | Reconstruct and raise/throw the Java Exception that caused the DirectorException Note that any error in the JNI exception handling results in a Java RuntimeException. More...
|
| |
| const char * | what () const noexcept override |
| | Gets the message describing the exception. More...
|
| |
| | ~JavaException ()=default |
| | Destructor. More...
|
| |
Exception class that can be used to wrap a Java generated exception.
Based on the generated code for Swig::DirectorException as generated in Swig 4.0
◆ JavaException() [1/2]
| kanzi::JavaException::JavaException |
( |
JNIEnv * |
jenv, |
|
|
jthrowable |
throwable |
|
) |
| |
Construct exception from a Java throwable.
◆ JavaException() [2/2]
| kanzi::JavaException::JavaException |
( |
const char * |
msg | ) |
|
|
inlineexplicit |
More general constructor for handling as a java.lang.RuntimeException.
◆ ~JavaException()
| kanzi::JavaException::~JavaException |
( |
| ) |
|
|
default |
◆ what()
| const char* kanzi::JavaException::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Gets the message describing the exception.
◆ throwJavaException()
| void kanzi::JavaException::throwJavaException |
( |
JNIEnv * |
jenv | ) |
const |
Reconstruct and raise/throw the Java Exception that caused the DirectorException Note that any error in the JNI exception handling results in a Java RuntimeException.
◆ throwNativeException()
| static void kanzi::JavaException::throwNativeException |
( |
JNIEnv * |
jenv, |
|
|
jthrowable |
throwable |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: