pub struct Exception<'env> { /* private fields */ }
Expand description
A dual token to NoException
that represents that there
might be a pending exception in Java.
Read more about exception tokens in NoException
documentation.
Implementations§
Source§impl<'env> Exception<'env>
impl<'env> Exception<'env>
Sourcepub fn unwrap(self) -> (Throwable<'env>, NoException<'env>)
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.
Trait Implementations§
Auto Trait Implementations§
impl<'env> Freeze for Exception<'env>
impl<'env> !RefUnwindSafe for Exception<'env>
impl<'env> !Send for Exception<'env>
impl<'env> !Sync for Exception<'env>
impl<'env> Unpin for Exception<'env>
impl<'env> !UnwindSafe for Exception<'env>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more