ReadonlycodeMachine-readable error code for switch/lookup.
ReadonlyseveritySeverity: error, warn, or info.
ReadonlyemitterWhich subsystem produced this error.
Optional ReadonlyactionThe action name involved (if applicable).
Optional ReadonlycontextAdditional context (e.g. retryIn for throttle, threshold for circuit breaker).
BusError — structured error with machine-readable code, severity, and emitter.
Extends native Error so it works everywhere errors work (catch, result.error, etc.). The
codefield enables switch-based handling, theseverityenables log filtering, and theemitterenables source-based routing.Example