pub struct Exception<'exc, 'data> { /* private fields */ }Expand description
A caught exception
Implementations§
Source§impl<'exc, 'data> Exception<'exc, 'data>
impl<'exc, 'data> Exception<'exc, 'data>
Sourcepub unsafe fn rethrow(self)
pub unsafe fn rethrow(self)
Rethrow the current exception.
Safety: this new exception causes execution to jump to the next enclosing try-catch block, no pending drops may be jumped over.
Sourcepub unsafe fn rethrow_other(self, exc: Value<'_, '_>)
pub unsafe fn rethrow_other(self, exc: Value<'_, '_>)
Rethrow another value as the current exception.
Safety: this new exception causes execution to jump to the next enclosing try-catch block, no pending drops may be jumped over.
Sourcepub fn print_backtrace(self)
pub fn print_backtrace(self)
Prints the current exception and the backtrace to stderr.
Trait Implementations§
impl<'exc, 'data> Copy for Exception<'exc, 'data>
Auto Trait Implementations§
impl<'exc, 'data> !RefUnwindSafe for Exception<'exc, 'data>
impl<'exc, 'data> !Sync for Exception<'exc, 'data>
impl<'exc, 'data> Freeze for Exception<'exc, 'data>
impl<'exc, 'data> Send for Exception<'exc, 'data>
impl<'exc, 'data> Unpin for Exception<'exc, 'data>
impl<'exc, 'data> UnsafeUnpin for Exception<'exc, 'data>
impl<'exc, 'data> UnwindSafe for Exception<'exc, 'data>
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