Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // database ErrUpdateNoneOrMany = errors.New("error in quantity of rows affected") ErrDatabase = errors.New("error database") ErrDuplicate = errors.New("error duplicate") ErrOrderNotCreated = errors.New("purchase not created, please try again") // rest ErrTimeout = errors.New("error timeout") ErrContentType = errors.New("content-type error") ErrValidation = errors.New("validation error") )
internal infra errors
Functions ¶
This section is empty.
Types ¶
type ClientError ¶
func (ClientError) Error ¶
func (err ClientError) Error() string
type DomainError ¶
func (DomainError) Error ¶
func (err DomainError) Error() string
type ValidationResponse ¶
func ValidateStruct ¶
func ValidateStruct(o interface{}) []*ValidationResponse
Click to show internal directories.
Click to hide internal directories.