Skip to main content

Module errors

Module errors 

Source
Expand description

Error codes carried in ERR frames (PROTOCOL.md §7).

Codes are u16 little-endian on the wire. The containing frame’s tag distinguishes context: non-zero tag is a synchronous error tied to a specific command; tag 0x0000 is an asynchronous fault not tied to any command. The two namespaces share one u16 space:

  • 0x0000..=0x00FF — synchronous-typical codes
  • 0x0100..=0x01FF — asynchronous-typical codes
  • 0x0200..=0xFFFF — reserved for future extensions

Any code MAY appear in either context when it fits semantically; the split is convention, not enforcement. ERADIO for instance is listed in the async table but is emitted synchronously when a hardware fault aborts a specific command.

Enums§

ErrorCode
Wire-level error code.