SmolBox.Error exception (SmolBox v0.1.0)

Copy Markdown View Source

A redacted operation failure with explicit dispatch evidence.

Errors contain no remote response bodies, credentials, commands, or file data. A transport failure with :dispatch_uncertain never authorizes command replay.

Summary

Types

category()

@type category() ::
  :validation
  | :unsupported_capability
  | :authentication
  | :admission_exhausted
  | :expired
  | :transport
  | :protocol
  | :output_limit
  | :identity_conflict
  | :not_found
  | :store
  | :stale_claim
  | :stale_version
  | :unknown
  | :cleanup

evidence()

@type evidence() ::
  :not_dispatched
  | :dispatch_uncertain
  | :running_observed
  | :exited
  | :termination_confirmed
  | :unknown

t()

@type t() :: %SmolBox.Error{
  __exception__: term(),
  category: category(),
  evidence: evidence(),
  exit_code: integer() | nil,
  operation: atom()
}