Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyFieldError ¶
EmptyFieldError creates an ErrInvalidField for an empty field
func ErrInvalidf ¶
ErrInvalidf creates an ErrInvalid using a custom format
func ErrNotFoundf ¶
ErrNotFoundf creates an ErrNotFound using a custom format
func InvalidFieldError ¶
InvalidFieldError creates an ErrInvalidField for a specific field and reason
Types ¶
type ErrInvalid ¶
type ErrInvalid string
ErrInvalid represents an invalid error
func (ErrInvalid) Error ¶
func (e ErrInvalid) Error() string
type ErrNotFound ¶
type ErrNotFound string
ErrNotFound represents a not found error
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
type ErrValidation ¶
type ErrValidation struct {
// contains filtered or unexported fields
}
ErrValidation is a validation error for a specific field and reason
func (ErrValidation) Error ¶
func (e ErrValidation) Error() string
Click to show internal directories.
Click to hide internal directories.