public enum ApiErrorType
An enum detailing what type of error is being returned
For more information, see the official Stripe docs: Error types
Enum Constant and Description |
---|
API_CONNECTION_ERROR
Failure to connect to Stripe's API.
|
API_ERROR
API errors cover any other type of problem (e.g., a temporary problem with Stripe's servers),
and are extremely uncommon.
|
AUTHENTICATION_ERROR
Failure to properly authenticate yourself in the request.
|
CARD_ERROR
Card errors are the most common type of error you should expect to handle. They result when
the user enters a card that can't be charged for some reason.
|
IDEMPOTENCY_ERROR
Idempotency errors occur when an
Idempotency-Key is re-used on a request that does not
match the first request's API endpoint and parameters. |
INVALID_REQUEST_ERROR
Invalid request errors arise when your request has invalid parameters.
|
RATE_LIMIT_ERROR
Too many requests hit the API too quickly.
|
@SerializedName public static ApiErrorType API_CONNECTION_ERROR
Failure to connect to Stripe's API.
@SerializedName public static ApiErrorType API_ERROR
API errors cover any other type of problem (e.g., a temporary problem with Stripe's servers), and are extremely uncommon.
@SerializedName public static ApiErrorType AUTHENTICATION_ERROR
Failure to properly authenticate yourself in the request.
@SerializedName public static ApiErrorType CARD_ERROR
Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can't be charged for some reason.
@SerializedName public static ApiErrorType IDEMPOTENCY_ERROR
Idempotency errors occur when an Idempotency-Key
is re-used on a request that does not
match the first request's API endpoint and parameters.
@SerializedName public static ApiErrorType INVALID_REQUEST_ERROR
Invalid request errors arise when your request has invalid parameters.
@SerializedName public static ApiErrorType RATE_LIMIT_ERROR
Too many requests hit the API too quickly.