public class AmazonClientException
extends java.lang.RuntimeException
Error responses from services will be handled as AmazonServiceExceptions. This class is primarily for errors that occur when unable to get a response from a service, or when the client is unable to understand a response from a service. For example, if a caller tries to use a client to make a service call, but no network connection is present, an AmazonClientException will be thrown to indicate that the client wasn't able to successfully make the service call, and no information from the service is available.
Callers should typically deal with exceptions through AmazonServiceException, which represent error responses returned by services. AmazonServiceException has much more information available for callers to appropriately deal with different types of errors that can occur.
AmazonServiceException
,
Serialized FormConstructor and Description |
---|
AmazonClientException(java.lang.String message)
Creates a new AmazonClientException with the specified message.
|
AmazonClientException(java.lang.String message,
java.lang.Throwable t)
Creates a new AmazonClientException with the specified message, and root
cause.
|
AmazonClientException(java.lang.Throwable throwable)
Create an AmazonClientException with an exception cause.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRetryable()
Returns a hint as to whether it makes sense to retry upon this exception.
|
public AmazonClientException(java.lang.String message, java.lang.Throwable t)
message
- An error message describing why this exception was thrown.t
- The underlying cause of this exception.public AmazonClientException(java.lang.String message)
message
- An error message describing why this exception was thrown.public AmazonClientException(java.lang.Throwable throwable)
throwable
- the cause of the exception.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.