Documentation
¶
Overview ¶
Package errors provides custom error types for GitHubby
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingToken = errors.New("missing required argument 'token'") ErrMissingRepository = errors.New("missing required argument 'repository'") ErrMissingFilter = errors.New("missing at least one filter flag (run with --help for more information)") ErrInvalidRepository = errors.New("invalid repository format (expected owner/repo)") ErrRateLimited = errors.New("GitHub API rate limit exceeded") ErrNotFound = errors.New("resource not found") )
Common errors
Functions ¶
func IsNotFound ¶
IsNotFound checks if the error is a not found error
func IsRateLimited ¶
IsRateLimited checks if the error is a rate limit error
Types ¶
type APIError ¶
APIError represents a GitHub API error
func NewAPIError ¶
NewAPIError creates a new API error
type AuthError ¶
type AuthError struct {
Message string
}
AuthError represents an authentication error with helpful guidance
func NewAuthError ¶
func NewAuthError() *AuthError
NewAuthError creates a user-friendly authentication error
type ValidationError ¶
ValidationError represents an input validation error
func NewValidationError ¶
func NewValidationError(field, message string) *ValidationError
NewValidationError creates a new validation error
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.