com.amazonaws
Class AmazonClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AbortedException, AmazonServiceException, DataStorageException, InitializationException, PauseException, RegistrationFailedException, SubscribeFailedException, UnsubscribeFailedException
public class AmazonClientException
- extends java.lang.RuntimeException
Base exception class for any errors that occur while attempting to use an AWS
client 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 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.
- See Also:
AmazonServiceException
,
Serialized Form
Constructor Summary |
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. |
Method Summary |
boolean |
isRetryable()
Returns a hint as to whether it makes sense to retry upon this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AmazonClientException
public AmazonClientException(java.lang.String message,
java.lang.Throwable t)
- 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
public AmazonClientException(java.lang.String message)
- Creates a new AmazonClientException with the specified message.
- Parameters:
message
- An error message describing why this exception was thrown.
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.
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.