Documentation
¶
Index ¶
- Variables
- func GRPCCode(err error) codes.Code
- func IsAlreadyExists(err error) bool
- func IsCanceled(err error) bool
- func IsInternal(err error) bool
- func IsInvalidArgument(err error) bool
- func IsNotFound(err error) bool
- func IsPermissionDenied(err error) bool
- func IsRateLimited(err error) bool
- func IsRetryable(err error) bool
- func IsServiceUnavailable(err error) bool
- func IsTimeout(err error) bool
- func IsTokenExpired(err error) bool
- func IsTokenInvalid(err error) bool
- func IsUnauthorized(err error) bool
- func Message(err error) string
- func ToHTTPStatus(err error) int
- func Wrap(err error) error
- func WrapWithCode(err error, code string, message string) error
- type IAMError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = stdErrors.New("not found") ErrPermissionDenied = stdErrors.New("permission denied") ErrInvalidArgument = stdErrors.New("invalid argument") ErrAlreadyExists = stdErrors.New("already exists") ErrInternal = stdErrors.New("internal error") ErrTokenExpired = stdErrors.New("token expired") ErrTokenInvalid = stdErrors.New("token invalid") ErrTokenRevoked = stdErrors.New("token revoked") ErrRateLimited = stdErrors.New("rate limited") ErrTimeout = stdErrors.New("timeout") )
Functions ¶
func IsAlreadyExists ¶
func IsCanceled ¶
func IsInternal ¶
func IsInvalidArgument ¶
func IsNotFound ¶
func IsPermissionDenied ¶
func IsRateLimited ¶
func IsRetryable ¶
func IsServiceUnavailable ¶
func IsTokenExpired ¶
func IsTokenInvalid ¶
func IsUnauthorized ¶
func ToHTTPStatus ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.