Enum SdkErrorType
- All Implemented Interfaces:
Serializable,Comparable<SdkErrorType>
General categories of errors that can be encountered when making an API call attempt.
This class is NOT intended to fully distinguish the details of every error that is possible to encounter when making an API call attempt; for example, it is not a replacement for detailed logs. Instead, the categories are intentionally broad to make it easy at-a-glance what is causing issues with requests, and to help direct further investigation.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA clientside timeout occurred, either an attempt level timeout, or API call level.An I/O error.Catch-all type for errors that don't fit into the other categories.The service responded with an error other thanTHROTTLING.The service responded with a throttling error. -
Method Summary
Modifier and TypeMethodDescriptionstatic SdkErrorTypetoString()static SdkErrorTypeReturns the enum constant of this type with the specified name.static SdkErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THROTTLING
The service responded with a throttling error. -
SERVER_ERROR
The service responded with an error other thanTHROTTLING. -
CONFIGURED_TIMEOUT
A clientside timeout occurred, either an attempt level timeout, or API call level. -
IO
An I/O error. -
OTHER
Catch-all type for errors that don't fit into the other categories.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SdkErrorType>
-
fromException
-