IrohBeam.Error exception (iroh_beam v0.2.0)

View Source

Stable, secret-safe error returned by IrohBeam operations.

Common categories include :invalid_argument, :resolution, :refused, :unauthorized, :timeout, :cancelled, :busy, :capacity, :closed, :peer_aborted, :too_large, :bind_failed, :duplicate_identity, :native_failure, and :internal. Native debug chains, peer close text, and panic payloads are deliberately excluded.

Summary

Types

category()

@type category() ::
  :cancelled
  | :internal
  | :invalid_argument
  | :native_failure
  | :timeout
  | atom()

t()

@type t() :: %IrohBeam.Error{
  __exception__: term(),
  category: category(),
  context: map(),
  message: String.t(),
  operation: atom()
}