Documentation
¶
Index ¶
- func CodeFromError(err error) connect.Code
- func IsAlreadyExists(err error) bool
- func IsCanceled(err error) bool
- func IsFailedPrecondition(err error) bool
- func IsInternal(err error) bool
- func IsInvalidArgument(err error) bool
- func IsNotFound(err error) bool
- func NewAlreadyExists(messageFormat string, args ...any) error
- func NewCanceled(messageFormat string, args ...any) error
- func NewFailedPrecondition(violationType string, messageFormat string, args ...any) error
- func NewInternal(messageFormat string, args ...any) error
- func NewInvalidArgument(fvs FieldViolations, messageFormat string, args ...any) error
- func NewNotFound(messageFormat string, args ...any) error
- func NewPermissionDenied(messageFormat string, args ...any) error
- func NewUnauthenticated(messageFormat string, args ...any) error
- func NewUnavailable(messageFormat string, args ...any) error
- func ViolationTypeFromError(e error) string
- func WrapInternal(err error, messageFormat string, args ...any) error
- type FieldViolation
- type FieldViolations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeFromError ¶
func IsAlreadyExists ¶
func IsCanceled ¶
func IsFailedPrecondition ¶
func IsInternal ¶
func IsInvalidArgument ¶
func IsNotFound ¶
func NewAlreadyExists ¶
func NewCanceled ¶
func NewFailedPrecondition ¶
func NewInternal ¶
func NewInvalidArgument ¶
func NewInvalidArgument(fvs FieldViolations, messageFormat string, args ...any) error
func NewNotFound ¶
func NewPermissionDenied ¶
func NewUnauthenticated ¶
func NewUnavailable ¶
func ViolationTypeFromError ¶
Types ¶
type FieldViolation ¶
type FieldViolations ¶
type FieldViolations []FieldViolation
Click to show internal directories.
Click to hide internal directories.