public enum SdkErrorType extends Enum<SdkErrorType>
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 and Description |
|---|
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.
|
SERVER_ERROR
The service responded with an error other than
THROTTLING. |
THROTTLING
The service responded with a throttling error.
|
| Modifier and Type | Method and Description |
|---|---|
static SdkErrorType |
fromException(Throwable e) |
String |
toString() |
static SdkErrorType |
valueOf(String name)
Returns 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.
|
public static final SdkErrorType THROTTLING
public static final SdkErrorType SERVER_ERROR
THROTTLING.public static final SdkErrorType CONFIGURED_TIMEOUT
public static final SdkErrorType IO
public static final SdkErrorType OTHER
public static SdkErrorType[] values()
for (SdkErrorType c : SdkErrorType.values()) System.out.println(c);
public static SdkErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<SdkErrorType>public static SdkErrorType fromException(Throwable e)
Copyright © 2023. All rights reserved.