JNIpp 1.0
JNI meets C++
java::Exception Class Reference

Wrapper for java.lang.Exception. More...

Inheritance diagram for java::Exception:
java::Throwable java::Object jni::AbstractObject java::RuntimeException

List of all members.

Public Member Functions

 Exception ()
 Creates java.lang.Exception and wraps it.
 Exception (PString message)
 Creates java.lang.Exception(message) and wraps it; don't call this constructor from derived classes.
 Exception (PString message, PThrowable cause)
 Creates java.lang.Exception(message,cause) and wraps it; don't call this constructor from derived classes.
 Exception (PThrowable cause)
 Creates java.lang.Exception(cause) and wraps it; don't call this constructor from derived classes.
 Exception (const jni::LObject &exception)
 Wraps exception.

Protected Member Functions

 Exception (const jni::LObject &, jfieldID)
 Constructs live object.

Detailed Description

Wrapper for java.lang.Exception.

See java::RuntimeException on how to throw exceptions.

Examples:

NativeSound.cpp.