Trait jaffi_support::exceptions::Throwable
source · [−]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.
fn catch<'j>(
_env: JNIEnv<'j>,
exception: JThrowable<'j>
) -> Result<Self, JThrowable<'j>>
fn catch<'j>(
_env: JNIEnv<'j>,
exception: JThrowable<'j>
) -> Result<Self, JThrowable<'j>>
Tests the exception against this type to see if it’s a correct exception