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:
- AmazonServiceException
public class AmazonClientException
- extends 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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AmazonClientException
public AmazonClientException(String message,
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(String message)
- Creates a new AmazonClientException with the specified message.
- Parameters:
message
- An error message describing why this exception was thrown.
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.