Documentation
¶
Overview ¶
Package errors provides custom error types for the mailing list service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conflict ¶
type Conflict struct {
// contains filtered or unexported fields
}
Conflict represents a conflict error in the application.
func NewConflict ¶
NewConflict creates a new Conflict error with the provided message.
type NotFound ¶
type NotFound struct {
// contains filtered or unexported fields
}
NotFound represents a not found error in the application.
func NewNotFound ¶
NewNotFound creates a new NotFound error with the provided message.
type ServiceUnavailable ¶
type ServiceUnavailable struct {
// contains filtered or unexported fields
}
ServiceUnavailable represents a service unavailability error in the application.
func NewServiceUnavailable ¶
func NewServiceUnavailable(message string, err ...error) ServiceUnavailable
NewServiceUnavailable creates a new ServiceUnavailable error with the provided message.
func (ServiceUnavailable) Error ¶
func (su ServiceUnavailable) Error() string
Error returns the error message for ServiceUnavailable.
func (ServiceUnavailable) Unwrap ¶
func (su ServiceUnavailable) Unwrap() error
Unwrap returns the wrapped error, if any.
type Unauthorized ¶
type Unauthorized struct {
// contains filtered or unexported fields
}
Unauthorized represents an unauthorized error in the application.
func NewUnauthorized ¶
func NewUnauthorized(message string, err ...error) Unauthorized
NewUnauthorized creates a new Unauthorized error with the provided message.
func (Unauthorized) Error ¶
func (u Unauthorized) Error() string
Error returns the error message for Unauthorized.
func (Unauthorized) Unwrap ¶
func (u Unauthorized) Unwrap() error
Unwrap returns the wrapped error, if any.
type Unexpected ¶
type Unexpected struct {
// contains filtered or unexported fields
}
Unexpected represents an unexpected error in the application.
func NewUnexpected ¶
func NewUnexpected(message string, err ...error) Unexpected
NewUnexpected creates a new Unexpected error with the provided message.
func (Unexpected) Error ¶
func (u Unexpected) Error() string
Error returns the error message for Unexpected.
func (Unexpected) Unwrap ¶
func (u Unexpected) Unwrap() error
Unwrap returns the wrapped error, if any.
type Validation ¶
type Validation struct {
// contains filtered or unexported fields
}
Validation represents a validation error in the application.
func NewValidation ¶
func NewValidation(message string, err ...error) Validation
NewValidation creates a new Validation error with the provided message.
func (Validation) Error ¶
func (v Validation) Error() string
Error returns the error message for Validation.
func (Validation) Unwrap ¶
func (v Validation) Unwrap() error
Unwrap returns the wrapped error, if any.