Available on crate feature
panic and non-target_family=wasm only.Expand description
Panic utilities.
Structs§
- Caught
Panic - A panic recovered by
catch_unwind_with_details, bundling the panic message with the location and backtrace captured at the panic site.
Functions§
- catch_
unwind - Like
std::panic::catch_unwind, but can unwind panics even ifinstall_enhanced_handlerhas been called. - catch_
unwind_ str - Like
crate::panic::catch_unwind, but downcasts the returnedBox<dyn Any>error to a string which is almost always is. - catch_
unwind_ with_ details - Like
catch_unwind_str, but on panic also recovers the panic’s source location and a backtrace captured at the panic site, bundled together in aCaughtPanic. - install_
enhanced_ handler - Overwrites the default panic handler with an enhanced panic handler.