pub trait Throwable: Sized {
    fn throw<S: Into<JNIString>>(
        &self,
        env: JNIEnv<'_>,
        msg: S
    ) -> Result<(), Error>; fn catch<'j>(
        _env: JNIEnv<'j>,
        exception: JThrowable<'j>
    ) -> Result<Self, JThrowable<'j>>; }

Required Methods

Throw a new exception.

Tests the exception against this type to see if it’s a correct exception

Implementors