Documentation
¶
Index ¶
- Constants
- func ErrDBConnection(inner error) error
- func ErrDBQuery(op, table string, inner error) error
- func ErrForbidden(resource string) error
- func ErrInternal(inner error) error
- func ErrNATSPublish(subject string, inner error) error
- func ErrNotFound(resource string, id any) error
- func ErrRateLimited(retryAfter int) error
- func ErrStatus(status int, msg string, kv ...any) error
- func ErrTimeout(operation string) error
- func ErrUnauthorized(reason string) error
- func ErrValidation(field, constraint string, val any) error
Constants ¶
View Source
const ( ErrCodeNotFound = "ERR_NOT_FOUND" ErrCodeValidation = "ERR_VALIDATION" ErrCodeForbidden = "ERR_FORBIDDEN" ErrCodeRateLimited = "ERR_RATE_LIMITED" ErrCodeTimeout = "ERR_TIMEOUT" ErrCodeDBConnection = "ERR_DB_CONNECTION" ErrCodeDBQuery = "ERR_DB_QUERY" ErrCodeNATS = "ERR_NATS" ErrCodeInternal = "ERR_INTERNAL" )
Variables ¶
This section is empty.
Functions ¶
func ErrDBConnection ¶
func ErrDBQuery ¶
func ErrForbidden ¶
func ErrInternal ¶
func ErrNATSPublish ¶
func ErrNotFound ¶
func ErrRateLimited ¶
func ErrTimeout ¶
func ErrUnauthorized ¶
func ErrValidation ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.