Skip to main content

Module error

Module error 

Source
Expand description

The dig-peer error taxonomy.

Every fallible entry point on DigPeer returns DigPeerError. The variants separate the four failure domains a peer client faces so a caller can react precisely: transport (could not reach the peer), protocol (the peer answered, but the RPC failed), seal (the §5.4 end-to-end encryption could not be applied or verified — always fail-closed), and state (the operation is invalid for the connection’s current lifecycle state).

Enums§

DigPeerError
A failure of a DigPeer operation.

Type Aliases§

Result
The result type for every DigPeer operation.