Debkit.Error exception (Debkit v0.1.1)

Copy Markdown View Source

Raised by the !-suffixed functions (Debkit.decompress!/2, Debkit.Ar.read!/1, …) when the underlying codec returns {:error, reason}.

The non-bang functions never raise — they return {:error, reason} — so reach for these only when a failure should abort the calling process.

The :reason field carries the same atom the tuple form would return. See Debkit.error/0 for the documented set.

Summary

Types

t()

An Debkit.Error exception struct.

Types

t()

@type t() :: %Debkit.Error{
  __exception__: true,
  operation: atom(),
  reason: Debkit.error()
}

An Debkit.Error exception struct.