Documentation
¶
Index ¶
- func NewAuthenticationError(message string) error
- func NewNetworkError(message string) error
- func NewNotFoundError(message string) error
- func NewParseError(message string) error
- func NewRateLimitError(message string) error
- func NewValidationError(message string) error
- func WrapError(err error, errorType ErrorType, message string) error
- type ErrorType
- type TypedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationError ¶
NewAuthenticationError creates a new authentication error.
func NewNetworkError ¶
NewNetworkError creates a new network error.
func NewNotFoundError ¶
NewNotFoundError creates a new not found error.
func NewParseError ¶
NewParseError creates a new parse error.
func NewRateLimitError ¶
NewRateLimitError creates a new rate limit error.
func NewValidationError ¶
NewValidationError creates a new validation error.
Types ¶
type ErrorType ¶
type ErrorType int
ErrorType represents the type of error.
const ( // ErrorTypeUnknown represents an unknown error. ErrorTypeUnknown ErrorType = iota // ErrorTypeAuthentication represents authentication errors. ErrorTypeAuthentication // ErrorTypeRateLimit represents rate limit errors. ErrorTypeRateLimit // ErrorTypeNotFound represents not found errors. ErrorTypeNotFound // ErrorTypeParse represents parsing errors. ErrorTypeParse // ErrorTypeNetwork represents network errors. ErrorTypeNetwork // ErrorTypeValidation represents validation errors. ErrorTypeValidation )
type TypedError ¶
TypedError is an error with a type.
Click to show internal directories.
Click to hide internal directories.