JNIpp 1.0
JNI meets C++
|
Wrapper for java.lang.RuntimeException
.
More...
Public Member Functions | |
RuntimeException () | |
Creates java.lang.RuntimeException and wraps it. | |
RuntimeException (PString message) | |
Creates java.lang.RuntimeException(message) and wraps it; don't call this constructor from derived classes. | |
RuntimeException (PString message, PThrowable cause) | |
Creates java.lang.RuntimeException(message,cause) and wraps it; don't call this constructor from derived classes. | |
RuntimeException (PThrowable cause) | |
Creates java.lang.RuntimeException(cause) and wraps it; don't call this constructor from derived classes. | |
RuntimeException (const jni::LObject &exception) | |
Wraps exception . | |
Protected Member Functions | |
RuntimeException (const jni::LObject &, jfieldID) | |
Constructs live object. |
Wrapper for java.lang.RuntimeException
.
The only correct way to throw a Java exception is to throw its ObjectPointer by value:
java::PString message=java::PString::New("Oops!"); throw java::PRuntimeException::New(message);