Package com.amazonaws
Class AmazonClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbortedException
,AmazonServiceException
,ClientExecutionTimeoutException
,FileLockException
,IncompatibleTypeException
,PauseException
,ResetException
,SdkJsonGenerator.JsonGenerationException
,TableUtils.TableNeverTransitionedToStateException
Base exception class for any errors that occur while attempting to use an AWS
client from AWS SDK for Java to make service calls to Amazon Web Services.
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 parse the 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.
Note : If the SDK is able to parse the response; but doesn't recognize the
error code from the service, an AmazonServiceException is thrown
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmazonClientException
(String message) Creates a new AmazonClientException with the specified message.AmazonClientException
(String message, Throwable t) Creates a new AmazonClientException with the specified message, and root cause. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a hint as to whether it makes sense to retry upon this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmazonClientException
Creates a new AmazonClientException with the specified message, and root cause.- Parameters:
message
- An error message describing why this exception was thrown.t
- The underlying cause of this exception.
-
AmazonClientException
Creates a new AmazonClientException with the specified message.- Parameters:
message
- An error message describing why this exception was thrown.
-
AmazonClientException
-
-
Method Details
-
isRetryable
public boolean isRetryable()Returns a hint as to whether it makes sense to retry upon this exception. Default is true, but subclass may override. This method is internal to the SDK. Users should not depend on this method to decide if an exception from an AWS service should be retried.
-