Documentation
¶
Overview ¶
Package exitcode maps SDK errors onto the CLI's exit codes and friendly messages, so scripts can branch on the class of failure.
Index ¶
Constants ¶
View Source
const ( OK = 0 Err = 1 // any other error Usage = 2 // bad invocation or missing configuration Auth = 3 // unauthorized / forbidden Payment = 4 // free tier hitting the paid-only API NotFound = 5 Unsupported = 6 // capability missing on this backend Throttled = 7 // rate-limited or upstream timeout after retries )
Exit codes. 0 is success.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UsageError ¶
type UsageError struct{ Msg string }
UsageError marks an invocation error (exit code 2).
func (*UsageError) Error ¶
func (e *UsageError) Error() string
Click to show internal directories.
Click to hide internal directories.