Documentation
¶
Index ¶
- type UserError
- func AuthenticationFailed() *UserError
- func MutuallyExclusive(arg, flag string) *UserError
- func NetworkError(serverURL string, cause error) *UserError
- func New(message string) *UserError
- func NotAuthenticated() *UserError
- func NotFound(resource, id string) *UserError
- func PermissionDenied(action string) *UserError
- func RequiredFlag(flag string) *UserError
- func WithSuggestion(message, suggestion string) *UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserError ¶
UserError represents an error with a user-friendly message and optional suggestion
func AuthenticationFailed ¶
func AuthenticationFailed() *UserError
AuthenticationFailed returns an error for failed authentication
func MutuallyExclusive ¶
MutuallyExclusive returns an error when mutually exclusive options are both provided
func NetworkError ¶
NetworkError returns an error for network issues
func NotAuthenticated ¶
func NotAuthenticated() *UserError
NotAuthenticated returns an error for unauthenticated users
func PermissionDenied ¶
PermissionDenied returns an error for permission issues
func RequiredFlag ¶
RequiredFlag returns an error for missing required flags in non-interactive mode
func WithSuggestion ¶
WithSuggestion creates a new UserError with a message and suggestion
Click to show internal directories.
Click to hide internal directories.