Function ffi_helpers::panic::recover_panic_message [−][src]
Expand description
Try to recover the error message from a panic.
std::panic::catch_unwind()
gives you a Box<Any + Send + 'static>
instead
of a concrete error type. This will attempt to downcast the error to various
“common” panic error types, falling back to some stock message if we can’t
figure out what the original panic message was.