Skip to main content

map_worker_error

Function map_worker_error 

Source
pub fn map_worker_error(worker_code: &str, message: &str) -> ErrorEnvelope
Expand description

Map a (worker_code, message) pair from an RpcResponse::Failure error object into a structured ErrorEnvelope. worker_code is the string in the worker error’s code field; message its message field. Unknown codes are preserved (never dropped).