Cherry.CLI.Error (cherry v0.2.0)

Copy Markdown View Source

A structured command failure.

code is the stable machine-readable identifier surfaced in --json envelopes; message is for humans; exit is the process exit code (1 = command failed, 2 = usage error — see Cherry.CLI).

Summary

Types

t()

@type t() :: %Cherry.CLI.Error{
  code: atom(),
  details: map(),
  exit: 1 | 2,
  message: String.t()
}