Documentation
¶
Overview ¶
Package exitcode holds the CLI's stable exit codes (CLT-15/FR-17) and the typed error that carries one, so every layer can say what went wrong without knowing how the process exits.
Index ¶
Constants ¶
const ( OK = 0 General = 1 Usage = 2 Auth = 3 NotFound = 4 Conflict = 5 Billing = 6 Timeout = 8 Partial = 9 RunFailed = 10 Interrupted = 130 )
Stable exit codes. They are part of the CLI's public contract: scripts and agents branch on them.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code int // exit code
APICode string // the API's error code (or a CLI code such as "confirmation_required")
Message string
Hint string
Status int // HTTP status, 0 when none
RequestID string
Cause error
}
Error is an expected failure: what failed, a stable machine code, a hint for what to do next, and the exit code the process ends with.