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 NotFound(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 ¶
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 ¶
func IsInternal ¶
func IsInvalidArgument ¶
func IsNotFound ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.