Versions in this module Expand all Collapse all v0 v0.1.0 Feb 16, 2026 Changes in this version + const CodeAuthExpiredToken + const CodeAuthInvalidCredentials + const CodeAuthNoCredentials + const CodeAuthzForbidden + const CodeAuthzInsufficient + const CodeBadRequest + const CodeConflictExists + const CodeConflictVersion + const CodeInternalDatabase + const CodeInternalGeneral + const CodeMalformedBody + const CodeNotFoundCluster + const CodeNotFoundGeneric + const CodeNotFoundNodePool + const CodeNotImplemented + const CodeRateLimitExceeded + const CodeSearchParseFail + const CodeServiceTimeout + const CodeServiceUnavailable + const CodeValidationFormat + const CodeValidationInvalid + const CodeValidationMultiple + const CodeValidationRange + const CodeValidationRequired + const ErrorTypeAuth + const ErrorTypeAuthz + const ErrorTypeBadRequest + const ErrorTypeBase + const ErrorTypeConflict + const ErrorTypeInternal + const ErrorTypeMalformed + const ErrorTypeNotFound + const ErrorTypeNotImpl + const ErrorTypeRateLimit + const ErrorTypeService + const ErrorTypeValidation + type ServiceError struct + Details []ValidationDetail + HttpCode int + RFC9457Code string + Reason string + Title string + Type string + func BadRequest(reason string, values ...interface{}) *ServiceError + func Conflict(reason string, values ...interface{}) *ServiceError + func DatabaseAdvisoryLock(err error) *ServiceError + func FailedToParseSearch(reason string, values ...interface{}) *ServiceError + func Find(code string) (bool, *ServiceError) + func Forbidden(reason string, values ...interface{}) *ServiceError + func GeneralError(reason string, values ...interface{}) *ServiceError + func InvalidToken(reason string, values ...interface{}) *ServiceError + func MalformedRequest(reason string, values ...interface{}) *ServiceError + func New(code string, reason string, values ...interface{}) *ServiceError + func NotFound(reason string, values ...interface{}) *ServiceError + func NotImplemented(reason string, values ...interface{}) *ServiceError + func Unauthenticated(reason string, values ...interface{}) *ServiceError + func Unauthorized(reason string, values ...interface{}) *ServiceError + func Validation(reason string, values ...interface{}) *ServiceError + func ValidationWithDetails(reason string, details []ValidationDetail) *ServiceError + func (e *ServiceError) AsError() error + func (e *ServiceError) AsProblemDetails(instance string, traceID string) openapi.Error + func (e *ServiceError) Error() string + func (e *ServiceError) Is404() bool + func (e *ServiceError) IsConflict() bool + func (e *ServiceError) IsForbidden() bool + type ServiceErrors []ServiceError + func Errors() ServiceErrors + type ValidationDetail struct + Constraint string + Field string + Message string + Value interface{} v0.1.0-rc.1 Feb 16, 2026