Documentation
¶
Overview ¶
Package errno provides a way to handle errors with exit codes.
Index ¶
Constants ¶
View Source
const ( // ExitOK is the exit code for a successful operation. ExitOK uint8 = iota // ExitError is the exit code for a generic error. ExitError // ExitUsage is the exit code for an incorrect usage of a command. ExitUsage // ExitIO is the exit code for an I/O error. ExitIO // ExitNotFound is the exit code for a file not found error. ExitNotFound // ExitPermission is the exit code for an I/O permission denied error. ExitPermission // ExitAPIError is the exit code for errors related to API requests. ExitAPIError // API. ExitUnauthorized // ExitTimeout is the exit code for timeout errors. ExitTimeout // ExitInvalidInput is the exit code for invalid input errors. ExitInvalidInput )
Exit codes for errors.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // Err is the underlying error that caused this error. Err error // No is the machine-readable exit code. No uint8 }
Error is an error with an exit code.
Click to show internal directories.
Click to hide internal directories.