Skip to main content

Module error

Module error 

Source
Expand description

The canonical control-plane error taxonomy.

One definition point for every error code a dig-node control method emits, the ControlError envelope ({code, message, data:{code, origin}}), and the constructor both sides use so every error carries a machine-branchable data.code (UPPER_SNAKE) and data.origin.

The numeric values are the SAME published wire contract as dig-node’s meta::ErrorCode and the canonical dig-rpc -320xx control range — they never change once assigned. A client keys its UX off data.code (the stable symbol), never the human message.

CodeVariantOriginMeaning
-32700ParseErrorshellrequest body was not valid JSON
-32600InvalidRequestshellnot a single JSON-RPC object
-32601MethodNotFoundboundarycontrol method is not resolved
-32602InvalidParamsnodemissing/malformed params
-32000DispatchFailedshellthe node failed to dispatch
-32030Unauthorizedshellcalled without a valid control token
-32031NotSupportedshellcontrol op unsupported on this build
-32032ControlErrorshellcontrol op failed at runtime

Structs§

ControlError
A control-plane error, serialized as the JSON-RPC error object ({code, message, data:{code, origin}}).
ControlErrorData
The machine-branchable inner data on a control error: the stable symbol + its origin.

Enums§

ControlErrorCode
A canonical control-plane error code.