Skip to main content

Module network

Module network 

Source
Expand description

libp2p network client error types. libp2p P2P network client error types (KIN-NET-NNN).

NetworkClientError is emitted by KineticNetworkClient operations. It transparently wraps libp2p Kademlia, GossipSub, or the internal mpsc command channel fails.

§Namespace Note

KIN-NET-NNN is shared between this type and KineticStoreError in kinetic-network. The two ranges do not overlap:

  • KIN-NET-001..009: This type (client-side failures)
  • KIN-NET-001..020: KineticStoreError (store-layer rejections)

The KineticStoreError codes take precedence in external-facing API responses because they carry richer rejection context. This type is used internally within the event loop for command dispatch failures.

Enums§

NetworkClientError
Errors originating from the Network Client (DHT, proxy, gossipsub)