ErrorCategory enum
Indicates which high-level category of error has occurred during a request to the Connect API.
Constructors
- ErrorCategory()
-
const
Values
- apiError → const ErrorCategory
-
An error occurred with the Connect API itself.
- authenticationError → const ErrorCategory
-
An authentication error occurred. Most commonly, the request had a missing, malformed, or otherwise invalid Authorization header.
- invalidRequestError → const ErrorCategory
-
The request was invalid. Most commonly, a required parameter was missing, or a provided parameter had an invalid value.
- rateLimitError → const ErrorCategory
-
Your application reached the Connect API rate limit. Retry your request after a while.
- paymentMethodError → const ErrorCategory
-
An error occurred while processing a payment method. Most commonly, the details of the payment method were invalid (such as a card's CVV or expiration date).
- refundError → const ErrorCategory
-
An error occurred while attempting to process a refund.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ErrorCategory> - A constant List of the values in this enum, in order of their declaration.