pub fn throw_exception(env: JNIEnv, message: &str) {
  env.exception_clear()
    .and_then(|_| env.throw_new("dev/derklaro/reflexion/ReflexionException", message))
    .expect("unable to clear current and throw new exception");
}
/// Clears all exceptions on the given environment and throws a ReflexionException
/// with the given message.
/// 
/// # Arguments
///
/// * `env`     - the current jni environment (pointer to the current running jvm).
/// * `message` - the message to pass to the exception.
Clears all exceptions on the given environment and throws a ReflexionException
with the given message.
Clears all exceptions on the given environment and throws a ReflexionException with the given message .
pub fn throw_exception(env: JNIEnv, message: &str) {
  env.exception_clear()
    .and_then(|_| env.throw_new("dev/derklaro/reflexion/ReflexionException", message))
    .expect("unable to clear current and throw new exception");
}
pub fn throw_exception ( env : JNIEnv , message : & str ) { env . exception_clear ( ) . and_then ( | _ | env . throw_new ( " " , message ) ) . expect ( " " ) ; }
Clears all exceptions on the given environment and throws a ReflexionException
with the given message.
Clears all exceptions on the given environment and throws a ReflexionException with the given message .
env
JNIEnv
message
&str
env
JNIEnv
message
&str