Struct rust_jni::Exception [−][src]
pub struct Exception<'env> { /* fields omitted */ }
A dual token to NoException
that represents that there
might be a pending exception in Java.
Read more about exception tokens in NoException
documentation.
Methods
impl<'env> Exception<'env>
[src]
impl<'env> Exception<'env>
pub fn unwrap(self) -> (Throwable<'env>, NoException<'env>)
[src]
pub fn unwrap(self) -> (Throwable<'env>, NoException<'env>)
Get and clear the pending exception and a NoException
token
to call more JNI methods. The Exception
token is consumed
by this method and can't be used any more.