Skip to main content

Module error

Module error 

Source
Expand description

The CLI error type that drives the process exit code.

Every subcommand handler returns Result<(), CliError>. A CliError carries the numeric exit code and an optional diagnostic message; main prints the message to stderr (prefixed cardanowall: ) and exits with the code.

Exit-code contract (the public UX, identical to the reference CLI):

  • 0 — success (verdict valid, or a non-verdict happy path).
  • 1 — integrity-class failure (verdict invalid, service-independence violation, server rejection).
  • 2 — network-class failure (unrecoverable runtime / IO / unparseable response).
  • 3 — pending (insufficient confirmations / unconfirmed tx).
  • 4 — CLI input error (bad args, malformed positional, conflicting modes).

Structs§

CliError
A subcommand failure carrying its process exit code and a diagnostic.