Documentation
¶
Index ¶
- type Error
- func AsError(err error) *Error
- func ErrAPI(status int, msg string) *Error
- func ErrAmbiguous(resource string, matches []string) *Error
- func ErrAuth(msg string) *Error
- func ErrForbidden(msg string) *Error
- func ErrNetwork(cause error) *Error
- func ErrNotFound(resource, identifier string) *Error
- func ErrRateLimit(retryAfter int) *Error
- func ErrUsage(msg string) *Error
- func ErrUsageHint(msg, hint string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code string
Message string
Hint string
HTTPStatus int
Retryable bool
Cause error
}
Error is a typed error carrying a machine-readable code, human message, optional hint, and metadata used for retry and exit-code decisions.
func ErrAmbiguous ¶
func ErrForbidden ¶
func ErrNetwork ¶
func ErrNotFound ¶
func ErrRateLimit ¶
func ErrUsageHint ¶
Click to show internal directories.
Click to hide internal directories.