macro_rules! catch_panic {
    ($e:expr, $fmt:expr) => { ... };
    ($e:expr, $fmt:expr, $($arg:tt)*) => { ... };
}
Expand description

Macro to catch panics for an expression evaluation and convert them to Status::internal errors with the given format string and additional args. The format string must have a {} placeholder for the panic message. The surrounding function must return a Result<_, Status>.