Versions in this module Expand all Collapse all v0 v0.0.4 Dec 23, 2025 v0.0.3 Dec 22, 2025 v0.0.2 Dec 19, 2025 v0.0.1 Dec 19, 2025 Changes in this version + const ErrAccountDisabled + const ErrAccountLocked + const ErrBadRequest + const ErrBind + const ErrDatabase + const ErrDecodingFailed + const ErrDecodingJSON + const ErrDecodingYaml + const ErrEncodingFailed + const ErrEncodingJSON + const ErrEncodingYaml + const ErrEncrypt + const ErrExpired + const ErrExternalService + const ErrForbidden + const ErrInternalServer + const ErrInvalidAuthHeader + const ErrInvalidJSON + const ErrInvalidYaml + const ErrKafka + const ErrMissingHeader + const ErrNotFound + const ErrPasswordIncorrect + const ErrPermissionDenied + const ErrRedis + const ErrSignatureInvalid + const ErrSuccess + const ErrTokenInvalid + const ErrTooManyAttempts + const ErrUnauthorized + const ErrUnknown + const ErrValidation + func IsClientError(errCode int) bool + func IsServerError(errCode int) bool + func NewBadRequestError(message string) error + func NewError(code int, message string) error + func NewErrorf(code int, format string, args ...any) error + func NewForbiddenError() error + func NewNotFoundError(resource string) error + func NewPermissionDeniedError(resource, action string) error + func NewTokenExpiredError() error + func NewTokenInvalidError() error + func NewUnauthorizedError() error + func NewValidationError(field, message string) error + func WrapBadRequestError(err error, message string) error + func WrapBindError(err error, message string) error + func WrapDatabaseError(err error, operation string) error + func WrapError(err error, code int, message string) error + func WrapErrorf(err error, code int, format string, args ...any) error + func WrapExternalError(err error, service, operation string) error + func WrapForbiddenError(err error, message string) error + func WrapInternalServerError(err error, message string) error + func WrapKafkaError(err error, operation string) error + func WrapNotFoundError(err error, message string) error + func WrapRedisError(err error, operation string) error + func WrapUnauthorizedError(err error, message string) error + func WrapValidationError(err error, message string) error + type ErrorCategory string + const CategoryAuth + const CategoryBusiness + const CategoryDatabase + const CategoryExternal + const CategoryKafka + const CategoryPermission + const CategoryRedis + const CategorySystem + const CategoryValidation + type ErrorInfo struct + Category ErrorCategory + Code int + Details string + Message string + Type ErrorType + func NewErrorInfo(err error) ErrorInfo + func (e *ErrorInfo) IsBusiness() bool + func (e *ErrorInfo) IsInternal() bool + type ErrorType int + const BusinessError + const InternalError