Versions in this module Expand all Collapse all v1 v1.0.1 Mar 16, 2026 v1.0.0 Jun 26, 2025 Changes in this version + var NotFound error = &MissingFailure + var PermissionDenied error = &PermissionFailure + var Unauthenticated error = &AuthenticationFailure + var Unimplemented error = &UnimplementedFailure + func Aborted(violations ...*ConflictViolation) error + func Bad(violations ...*FieldViolation) error + func FailedPrecondition(violations ...*PreconditionViolation) error + func IsAborted(err error) bool + func IsBad(err error) bool + func IsFailedPrecondition(err error) bool + func IsNotFound(err error) bool + func IsPermissionDenied(err error) bool + func IsResourceExhausted(err error) bool + func IsUnauthenticated(err error) bool + func IsUnavailable(err error) bool + func IsUnimplemented(err error) bool + func ResourceExhausted(violations ...*QuotaViolation) error + func Unavailable(retryDelay time.Duration) error + func WithAborted(parent error, violations ...*ConflictViolation) error + func WithBad(parent error, violations ...*FieldViolation) error + func WithFailedPrecondition(parent error, violations ...*PreconditionViolation) error + func WithNotFound(parent error) error + func WithPermissionDenied(parent error) error + func WithResourceExhausted(parent error, violations ...*QuotaViolation) error + func WithUnauthenticated(parent error) error + func WithUnavailable(parent error, retryDelay time.Duration) error + func WithUnimplemented(parent error) error + type AuthenticationFailure struct + func AsUnauthenticated(err error) (*AuthenticationFailure, bool) + func (e *AuthenticationFailure) Error() string + func (e *AuthenticationFailure) Is(target error) bool + func (e *AuthenticationFailure) Unwrap() error + type AvailabilityFailure struct + RetryInfo RetryInfo + func AsUnavailable(err error) (*AvailabilityFailure, bool) + func (e *AvailabilityFailure) Error() string + func (e *AvailabilityFailure) Is(target error) bool + func (e *AvailabilityFailure) Unwrap() error + type BadRequest struct + Violations []*FieldViolation + func AsBad(err error) (*BadRequest, bool) + func (e *BadRequest) Error() string + func (e *BadRequest) Is(target error) bool + func (e *BadRequest) Unwrap() error + type ConflictFailure struct + Violations []*ConflictViolation + func AsAborted(err error) (*ConflictFailure, bool) + func (e *ConflictFailure) Error() string + func (e *ConflictFailure) Is(target error) bool + func (e *ConflictFailure) Unwrap() error + type ConflictViolation struct + Description string + Resource string + func (v *ConflictViolation) String() string + type FieldViolation struct + Description string + Field string + func (v *FieldViolation) String() string + type MissingFailure struct + func AsNotFound(err error) (*MissingFailure, bool) + func (e *MissingFailure) Error() string + func (e *MissingFailure) Is(target error) bool + func (e *MissingFailure) Unwrap() error + type PermissionFailure struct + func AsPermissionDenied(err error) (*PermissionFailure, bool) + func (e *PermissionFailure) Error() string + func (e *PermissionFailure) Is(target error) bool + func (e *PermissionFailure) Unwrap() error + type PreconditionFailure struct + Violations []*PreconditionViolation + func AsFailedPrecondition(err error) (*PreconditionFailure, bool) + func (e *PreconditionFailure) Error() string + func (e *PreconditionFailure) Is(target error) bool + func (e *PreconditionFailure) Unwrap() error + type PreconditionViolation struct + Description string + Subject string + Type string + func (v *PreconditionViolation) String() string + type QuotaFailure struct + Violations []*QuotaViolation + func AsResourceExhausted(err error) (*QuotaFailure, bool) + func (e *QuotaFailure) Error() string + func (e *QuotaFailure) Is(target error) bool + func (e *QuotaFailure) Unwrap() error + type QuotaViolation struct + Description string + Subject string + func (v *QuotaViolation) String() string + type RetryInfo struct + RetryDelay time.Duration + type UnimplementedFailure struct + func AsUnimplemented(err error) (*UnimplementedFailure, bool) + func (e *UnimplementedFailure) Error() string + func (e *UnimplementedFailure) Is(target error) bool + func (e *UnimplementedFailure) Unwrap() error