IrohErrorKind

Stable high-level error categories exposed across the FFI boundary.

These are intentionally coarser than the upstream Rust error types. They give foreign bindings a stable taxonomy for errors.Is-style handling without leaking the internal iroh / n0-error error hierarchy.

Entries

Link copied to clipboard

Invalid input supplied by the caller.

Link copied to clipboard

Failure while binding an endpoint.

Link copied to clipboard

Failure while initiating or completing an outgoing connection.

Link copied to clipboard

An established connection failed or closed unexpectedly.

Link copied to clipboard

ALPN negotiation or lookup failed.

Link copied to clipboard

Endpoint id / public key parsing failed.

Link copied to clipboard

Ticket parsing failed.

Link copied to clipboard

Relay configuration or relay operation failed.

Link copied to clipboard

Stream read/write/control operation failed.

Link copied to clipboard

Datagram send/receive operation failed.

Link copied to clipboard

Foreign callback failed.

Link copied to clipboard

Operation was attempted on a closed stream/connection/resource.

Link copied to clipboard

Operation timed out.

Link copied to clipboard

Unclassified internal error.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.