Versions in this module Expand all Collapse all v0 v0.1.0 Aug 17, 2024 Changes in this version + const MessageForbidden + const MessageInternalServerError + const MessageTooManyRequests + var ErrFailedValidation = errors.New("failed validation") + type BadRequestError struct + func NewBadRequestError(err error) BadRequestError + func (err BadRequestError) Error() string + type ConflictError struct + JSONField string + func NewConflictError(resourceName string, identifierValue any, jsonField string) ConflictError + func (err ConflictError) Error() string + type ErrorDto struct + Error string + Message any + Status int + func NewErrorDto(status int, message any) ErrorDto + type NotFoundError struct + JSONField string + func NewNotFoundError(resourceName string, identifierValue any, jsonField string) NotFoundError + func (err NotFoundError) Error() string + type UnauthorizedError struct + func NewUnauthorizedError(err error) UnauthorizedError + func (err UnauthorizedError) Error() string