Documentation
¶
Index ¶
- func Conflict(format string, args ...any) error
- func ConnectErrorComparer() cmp.Option
- func Convert(err error) *connect.Error
- func FailedPrecondition(format string, args ...any) error
- func Internal(format string, args ...any) error
- func InvalidArgument(format string, args ...any) error
- func IsConflict(err error) bool
- func IsFailedPrecondition(err error) bool
- func IsInternal(err error) bool
- func IsInvalidArgument(err error) bool
- func IsNotFound(err error) bool
- func IsPermissionDenied(err error) bool
- func IsResourceExhausted(err error) bool
- func IsUnauthenticated(err error) bool
- func NewConflict(err error) error
- func NewFailedPrecondition(err error) error
- func NewInternal(err error) error
- func NewInvalidArgument(err error) error
- func NewNotFound(err error) error
- func NewPermissionDenied(err error) error
- func NewResourceExhausted(err error) error
- func NewUnauthenticated(err error) error
- func NotFound(format string, args ...any) error
- func PermissionDenied(format string, args ...any) error
- func ResourceExhausted(format string, args ...any) error
- func Unauthenticated(format string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectErrorComparer ¶
func Convert ¶
Convert compares the error and maps it to a appropriate connect.Error if there is no backend-specific wrapped error given to this function, it will just return an internal error. if there are multiple errors wrapped this function only cares about the first found error in the error tree.
func FailedPrecondition ¶ added in v0.0.6
FailedPrecondition creates a new FailedPrecondition error with a given error message and the original error.
func Internal ¶
Internal creates a new Internal error with a given error message and the original error.
func InvalidArgument ¶
InvalidArgument creates a new InvalidArgument error with a given error message and the original error.
func IsConflict ¶
func IsFailedPrecondition ¶ added in v0.0.6
func IsInternal ¶
func IsInvalidArgument ¶
func IsNotFound ¶
func IsPermissionDenied ¶ added in v0.0.6
func IsResourceExhausted ¶ added in v0.0.6
func IsUnauthenticated ¶
func NewConflict ¶
NewConflict creates a new conflict error with a given error message.
func NewFailedPrecondition ¶ added in v0.0.6
NewFailedPrecondition creates a new FailedPrecondition error with a given error message and the original error.
func NewInternal ¶
NewInternal creates a new Internal error with a given error message and the original error.
func NewInvalidArgument ¶
NewInvalidArgument creates a new InvalidArgument error with a given error message and the original error.
func NewNotFound ¶
NewNotFound creates a new notfound error with a given error message.
func NewPermissionDenied ¶ added in v0.0.6
NewPermissionDenied creates a new PermissionDenied error with a given error message and the original error.
func NewResourceExhausted ¶ added in v0.0.6
NewResourceExhausted creates a new ResourceExhausted error with a given error message and the original error.
func NewUnauthenticated ¶
NewUnauthenticated creates a new Unauthenticated error with a given error message and the original error.
func PermissionDenied ¶ added in v0.0.6
PermissionDenied creates a new PermissionDenied error with a given error message and the original error.
func ResourceExhausted ¶ added in v0.0.6
ResourceExhausted creates a new ResourceExhausted error with a given error message and the original error.
func Unauthenticated ¶
Unauthenticated creates a new Unauthenticated error with a given error message and the original error.
Types ¶
This section is empty.