Example usage for Java com.amazonaws AmazonServiceException fields, constructors, methods, implement or subclass
The text is from its open source code.
AmazonServiceException(String errorMessage) Constructs a new AmazonServiceException with the specified message. | |
AmazonServiceException(String errorMessage, Exception cause) Constructs a new AmazonServiceException with the specified message and exception indicating the root cause. |
String | getErrorCode() Returns the AWS error code represented by this exception. |
String | getErrorMessage() |
ErrorType | getErrorType() Indicates who is responsible for this exception (caller, service, or unknown). |
Map | getHttpHeaders() |
String | getMessage() |
String | getRawResponseContent() Typically only useful for debugging purpose if for some reason the SDK cannot parse the HTTP response from a service |
String | getRequestId() Returns the AWS request ID that uniquely identifies the service request the caller made. |
String | getServiceName() Returns the name of the service that sent this error response. |
int | getStatusCode() Returns the HTTP status code that was returned with this service exception. |
void | setErrorCode(String errorCode) Sets the AWS error code represented by this exception. |
void | setErrorType(ErrorType errorType) Sets the type of error represented by this exception (sender, receiver, or unknown), indicating if this exception was the caller's fault, or the service's fault. |
void | setRequestId(String requestId) Sets the AWS requestId for this exception. |
void | setServiceName(String serviceName) Sets the name of the service that sent this error response. |
void | setStatusCode(int statusCode) Sets the HTTP status code that was returned with this service exception. |