IsForbiddenError returns true if the unwrapped error is ErrForbidden
(err error)
| 59 | |
| 60 | // IsForbiddenError returns true if the unwrapped error is ErrForbidden |
| 61 | func IsForbiddenError(err error) bool { |
| 62 | return errors.Is(err, ErrForbidden) |
| 63 | } |
| 64 | |
| 65 | // IsUnknownError returns true if the unwrapped error is ErrUnknown |
| 66 | func IsUnknownError(err error) bool { |
no outgoing calls