Expand description
Total map from the Java worker’s string error codes to the Rust ErrorCode set (spec §4.1).
Every known worker string maps to a variant; any UNKNOWN string falls back to WorkerUnavailable
with the raw code preserved in details.worker_code so nothing is silently lost.
Functions§
- map_
worker_ error - Map a
(worker_code, message)pair from anRpcResponse::Failureerror object into a structuredErrorEnvelope.worker_codeis the string in the worker error’scodefield;messageitsmessagefield. Unknown codes are preserved (never dropped).