Skip to main content

panic_msg_to_error

Function panic_msg_to_error 

Source
pub fn panic_msg_to_error(msg: &str) -> ExchangeError
Expand description

Parse a transpiled error payload ("[Kind] message") into a typed ExchangeError. Falls back to the generic ExchangeError kind when the payload doesn’t carry a leading [Kind] marker.