Documentation
¶
Overview ¶
Package apperr defines aitk's typed errors: a stable code, an exit code, and a fix hint.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitRuntime = 1 ExitUsage = 2 ExitGate = 3 ExitConflict = 4 )
Exit codes (docs/spec/cli.md).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code string // E_*
Message string
Fix string // exact command or action that resolves the error
Exit int
}
Error is returned by every command that fails in an expected way.
func NeedsMigration ¶
func NeedsMigration() *Error
func NoActiveTask ¶
func NoActiveTask() *Error
func TaskNotFound ¶
Click to show internal directories.
Click to hide internal directories.