core/network/errors library

Exceptions / Errors

GaterDisallowedConnectionException
Exception thrown when the connection gater (Config.connGater) rejects a dial or a connection (go-libp2p's ErrGaterDisallowedConnection). check names the gater method that said no. A connection, if one was made, is closed.
LimitedConnException
Exception thrown when attempting to open a stream to a peer with only a limited connection, without specifying the AllowLimitedConn option.
NoConnException
Exception thrown when attempting to open a stream to a peer with the NoDial option and no usable connection is available.
NoRemoteAddrsException
Exception thrown when there are no addresses associated with a peer during a dial.
PeerIdMismatchException
Exception thrown when a dial reaches a different peer than the one dialed: the security handshake authenticated actual, not expected (go-libp2p's "peer id mismatch"). The connection is closed.
ResourceLimitExceededException
Exception thrown when attempting to perform an operation that would exceed system resource limits.
ResourceScopeClosedException
Exception thrown when attempting to reserve resources in a closed resource scope.
TemporaryException
Exception thrown when a temporary error occurs
TransientConnException
Exception thrown when attempting to open a stream to a peer with only a transient connection, without specifying the UseTransient option.