Skip to main content

Module err

Module err 

Source
Expand description

Error-related functionality for RPC functions.

StructsΒ§

RpcError
An error type returned by failing RPC methods.

EnumsΒ§

AnyErrorKind πŸ”’
An ErrorKind as held by an RpcError
RpcErrorKind
Error kinds for RPC errors.

FunctionsΒ§

kind_to_code πŸ”’
Helper: Return an error code (for backward compat with json-rpc) for an ErrorKind.
ser_code πŸ”’
Helper: Serialize an RpcErrorKind as a numeric code.
ser_kind πŸ”’
Helper: Serialize an AnyErrorKind in RpcError.

Type AliasesΒ§

ErrorDatum πŸ”’
Alias for a type-erased value used in an error’s data field