Skip to main content

Module error

Module error 

Source
Expand description

Errors and exit codes.

Two things live here:

  • Error — a plain, human-readable error with an associated exit code.
  • ErrorSet — the “collect all errors, report at the end” accumulator the workflow standard calls for. A command can push many failures and still run to completion, then the app prints them all and exits non-zero.

Modules§

codes
Conventional exit codes. Small, memorable, and stable across every CLI so scripts can rely on them.

Structs§

Error
A single, user-facing error. Carries a message and the exit code the process should return if this error is the one that ends the run.
ErrorSet
Accumulates multiple errors so a command can process every item and report all failures at once rather than stopping at the first.

Type Aliases§

Result
The result type command bodies return.