-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
39 lines (36 loc) · 1.83 KB
/
Copy patherrors.go
File metadata and controls
39 lines (36 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package bird
import "github.com/messagebird/bird-sdk-go/internal/apierror"
// The SDK error model, re-exported from internal/apierror so these names are
// the semver-locked public surface. Catch *APIError (via errors.As) to handle
// any server error; the variants carry extra data. Transport failures with no
// HTTP response are *ConnectionError / *TimeoutError; a bad webhook signature is
// *WebhookVerificationError.
type (
APIError = apierror.APIError
RateLimitError = apierror.RateLimitError
ValidationError = apierror.ValidationError
ConnectionError = apierror.ConnectionError
TimeoutError = apierror.TimeoutError
WebhookVerificationError = apierror.WebhookVerificationError
ErrorDetail = apierror.ErrorDetail
ErrorNextAction = apierror.ErrorNextAction
UnmetGate = apierror.UnmetGate
ErrorType = apierror.ErrorType
)
// ErrorType values — the coarse categories clients branch on (ADR-0016).
const (
ErrorTypeBadRequest = apierror.ErrorTypeBadRequest
ErrorTypeAuth = apierror.ErrorTypeAuth
ErrorTypeBilling = apierror.ErrorTypeBilling
ErrorTypePermission = apierror.ErrorTypePermission
ErrorTypeNotFound = apierror.ErrorTypeNotFound
ErrorTypeConflict = apierror.ErrorTypeConflict
ErrorTypePrecondition = apierror.ErrorTypePrecondition
ErrorTypePayloadTooLarge = apierror.ErrorTypePayloadTooLarge
ErrorTypeMisdirected = apierror.ErrorTypeMisdirected
ErrorTypeValidation = apierror.ErrorTypeValidation
ErrorTypeRateLimit = apierror.ErrorTypeRateLimit
ErrorTypeInternal = apierror.ErrorTypeInternal
ErrorTypeNotImplemented = apierror.ErrorTypeNotImplemented
ErrorTypeServiceUnavailable = apierror.ErrorTypeServiceUnavailable
)