Regc.Oci.Error exception (regc v0.0.1)

View Source

Structured error returned while resolving image metadata.

Summary

Types

t()

@type t() :: %Regc.Oci.Error{
  __exception__: term(),
  cause: term(),
  code: atom() | nil,
  details: map(),
  digest: String.t() | nil,
  message: String.t() | nil,
  reference: term(),
  retryable?: boolean(),
  stage: atom() | nil,
  status: non_neg_integer() | nil
}

Functions

new(stage, code, message, opts \\ [])

@spec new(atom(), atom(), String.t(), keyword()) :: t()

result(stage, code, message, opts \\ [])

@spec result(atom(), atom(), String.t(), keyword()) :: {:error, t()}