Skip to main content

Module panic

Module panic 

Source
Available on non-target_family=wasm and crate feature panic only.
Expand description

Panic utilities.

Functionsยง

catch_unwind
Like std::panic::catch_unwind, but can unwind panics even if install_enhanced_handler has been called.
catch_unwind_str
Like crate::panic::catch_unwind, but downcasts the returned Box<dyn Any> error to a string which is almost always is.
install_enhanced_handler
Overwrites the default panic handler with an enhanced panic handler.