Adds jni exception throws.
Adds new exception.