Documentation
¶
Overview ¶
Package errors provides error types for distinguishing between user errors and system errors, allowing commands to provide appropriate guidance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryable ¶
IsRetryable returns true if the error is a retryable SystemError.
Types ¶
type SystemError ¶
SystemError represents an error caused by system issues (API failures, network problems, etc). May be temporary and retryable.
func NewSystemError ¶
func NewSystemError(message string, cause error, retryable bool) SystemError
NewSystemError creates a new SystemError.
func (SystemError) Error ¶
func (e SystemError) Error() string
func (SystemError) Unwrap ¶
func (e SystemError) Unwrap() error
type UserError ¶
type UserError struct {
Message string
}
UserError represents an error caused by invalid user input or action. These errors are actionable - the user can fix them.
func NewUserError ¶
NewUserError creates a new UserError with the given message.
Click to show internal directories.
Click to hide internal directories.