Skip to main content

Module error

Module error 

Source
Expand description

Errors surfaced by the confiumd JSON-RPC daemon.

Daemon errors fall into two layers:

  • RpcError — JSON-RPC protocol errors, serialized into a "error" object on the wire (see protocol.rs).
  • DaemonError — transport / lifecycle failures that bubble up to the listen loop and usually terminate the process.

Modules§

code
JSON-RPC error codes as defined by the spec, plus the Confium-specific range (−32000 to −32099) for server errors.

Structs§

EngineSnafu
SNAFU context selector for the RpcError::Engine variant
InternalSnafu
SNAFU context selector for the RpcError::Internal variant
InvalidParamsSnafu
SNAFU context selector for the RpcError::InvalidParams variant
MethodNotFoundSnafu
SNAFU context selector for the RpcError::MethodNotFound variant

Enums§

DaemonError
Transport / lifecycle errors that are not reported to the client as a JSON-RPC error but instead cause the listener or connection loop to abort.
RpcError
An error that can be serialized into a JSON-RPC "error" object.

Type Aliases§

Result