Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comments for deprecated error types #1414

Merged
merged 1 commit into from
Feb 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ type ErrorType string
// List of values that ErrorType can take.
const (
ErrorTypeAPI ErrorType = "api_error"
ErrorTypeAPIConnection ErrorType = "api_connection_error"
ErrorTypeAuthentication ErrorType = "authentication_error"
ErrorTypeCard ErrorType = "card_error"
ErrorTypeIdempotency ErrorType = "idempotency_error"
ErrorTypeInvalidRequest ErrorType = "invalid_request_error"
ErrorTypePermission ErrorType = "more_permissions_required"
ErrorTypeRateLimit ErrorType = "rate_limit_error"

// error type api_connection_error is deprecated and will be removed in the next version
ErrorTypeAPIConnection ErrorType = "api_connection_error"
// error type authentication_error is deprecated and will be removed in the next version
ErrorTypeAuthentication ErrorType = "authentication_error"
// error type more_permissions_required is deprecated and will be removed in the next version
ErrorTypePermission ErrorType = "more_permissions_required"
// error type rate_limit_error is deprecated and will be removed in the next version
ErrorTypeRateLimit ErrorType = "rate_limit_error"
)

// ErrorCode is the list of allowed values for the error's code.
Expand Down