Documentation ¶
Index ¶
- Variables
- type Error
- func NewBadRequestError(message string) Error
- func NewError(message string, status ...int) Error
- func NewErrorf(pattern string, args ...any) Error
- func NewInvalidUUIDError() Error
- func NewNotFoundError(resource string) Error
- func NewUnexportedFieldError(fieldName string) Error
- func NewValidationError(errors validator.ValidationErrors) Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidUUID = NewInvalidUUIDError() ErrNotFound = NewNotFoundError("resource") ErrFieldUnexported = NewError("field is unexported, can't get it's value") ErrDataNotStruct = NewError("data isn't struct") ErrFieldNotInt = NewError("field isn't type int, int8, int16, int32 or int64") ErrFieldNotUInt = NewError("field isn't type uint, uint8, uint16, uint32 or uint64") ErrFieldNotString = NewError("field isn't type string") ErrNotPointer = NewError("destination should be pointer or else changes won't reflect on it") )
Functions ¶
This section is empty.
Types ¶
type Error ¶
func NewBadRequestError ¶
func NewInvalidUUIDError ¶
func NewInvalidUUIDError() Error
func NewNotFoundError ¶
func NewUnexportedFieldError ¶
func NewValidationError ¶
func NewValidationError(errors validator.ValidationErrors) Error
Click to show internal directories.
Click to hide internal directories.