Trait java_bindgen::exception::JNIEnvUtils

source ·
pub trait JNIEnvUtils {
    // Required methods
    fn j_throw_cause(&mut self, j_class: JExceptionClass, cause: &impl Error);
    fn j_throw(&mut self, j_class: JExceptionClass);
    fn j_throw_msg(&mut self, message: &str);
    fn j_throw_exception(&mut self, ex: JException);
    fn get_string_owned(&mut self, jstring: &JString<'_>) -> Result<String>;
}

Required Methods§

source

fn j_throw_cause(&mut self, j_class: JExceptionClass, cause: &impl Error)

source

fn j_throw(&mut self, j_class: JExceptionClass)

source

fn j_throw_msg(&mut self, message: &str)

source

fn j_throw_exception(&mut self, ex: JException)

source

fn get_string_owned(&mut self, jstring: &JString<'_>) -> Result<String>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'local> JNIEnvUtils for JNIEnv<'local>