Java com.amazonaws AmazonServiceException fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws AmazonServiceException fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws AmazonServiceException.

The text is from its open source code.

Subclass

com.amazonaws.AmazonServiceException has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

StringgetErrorCode()
Returns the AWS error code represented by this exception.
StringgetErrorMessage()
ErrorTypegetErrorType()
Indicates who is responsible for this exception (caller, service, or unknown).
MapgetHttpHeaders()
StringgetMessage()
StringgetRawResponseContent()
Typically only useful for debugging purpose if for some reason the SDK cannot parse the HTTP response from a service
StringgetRequestId()
Returns the AWS request ID that uniquely identifies the service request the caller made.
StringgetServiceName()
Returns the name of the service that sent this error response.
intgetStatusCode()
Returns the HTTP status code that was returned with this service exception.
voidsetErrorCode(String errorCode)
Sets the AWS error code represented by this exception.
voidsetErrorType(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.
voidsetRequestId(String requestId)
Sets the AWS requestId for this exception.
voidsetServiceName(String serviceName)
Sets the name of the service that sent this error response.
voidsetStatusCode(int statusCode)
Sets the HTTP status code that was returned with this service exception.