Public Member Functions | Static Public Member Functions | Properties

AmazonServiceException Class Reference

Represents an AWS Service Exception. More...

#import <AmazonServiceException.h>

Inherits AmazonClientException.

Inherited by SimpleDBAttributeDoesNotExistException, SimpleDBDuplicateItemNameException, SimpleDBInvalidNextTokenException, SimpleDBInvalidNumberPredicatesException, SimpleDBInvalidNumberValueTestsException, SimpleDBInvalidParameterValueException, SimpleDBInvalidQueryExpressionException, SimpleDBMissingParameterException, SimpleDBNoSuchDomainException, SimpleDBNumberDomainAttributesExceededException, SimpleDBNumberDomainBytesExceededException, SimpleDBNumberDomainsExceededException, SimpleDBNumberItemAttributesExceededException, SimpleDBNumberSubmittedAttributesExceededException, SimpleDBNumberSubmittedItemsExceededException, SimpleDBRequestTimeoutException, SimpleDBTooManyRequestedAttributesException, SNSAuthorizationErrorException, SNSInternalErrorException, SNSInvalidParameterException, SNSNotFoundException, SNSSubscriptionLimitExceededException, SNSTopicLimitExceededException, SQSInvalidAttributeNameException, SQSInvalidMessageContentsException, SQSQueueDeletedRecentlyException, SQSQueueNameExistsException, and SQSReceiptHandleIsInvalidException.

List of all members.

Public Member Functions

(id) - initWithMessage:
 Initialize the exeption with a message.
(void) - setPropertiesWithException:
(NSString *) - description

Static Public Member Functions

(AmazonServiceException *) + exceptionWithMessage:
 Return an exception with the given message.
(AmazonServiceException *) + exceptionWithStatusCode:
 Return an exception with the given HTTP status code.
(AmazonServiceException *) + exceptionWithMessage:withErrorCode:withStatusCode:withRequestId:
 Return an exception with the given message, error code, status, and request ID.

Properties

NSString * requestId
 The requestId as assigned by the service.
NSString * errorCode
 The error code returned by the service.
NSString * serviceName
NSInteger statusCode
 The HTTP status code returned by the service.
NSMutableDictionary * additionalFields
 Other fields in the error response from the service.

Detailed Description

Represents an AWS Service Exception.


Member Function Documentation

+ (AmazonServiceException * AmazonServiceException.)exceptionWithMessage: (NSString *)  theMessage  

Return an exception with the given message.

Parameters:
theMessage The user-friendly message

Implements AmazonClientException.

+ (AmazonServiceException * AmazonServiceException.)exceptionWithMessage: (NSString *)  theMessage
withErrorCode: (NSString *)  theErrorCode
withStatusCode: (NSInteger)  theStatusCode
withRequestId: (NSString *)  theRequestId 

Return an exception with the given message, error code, status, and request ID.

Parameters:
theMessage The message for the exception.
theErrorCode The error code for the exception.
theStatusCode The HTTP Status code for the exception.
theRequestId The request ID assigned by the service.
Returns:
The exception.
+ (AmazonServiceException * AmazonServiceException.)exceptionWithStatusCode: (int)  theStatusCode  

Return an exception with the given HTTP status code.

Parameters:
theStatusCode The HTTP status code.
- (id AmazonServiceException.)initWithMessage: (NSString *)  message  

Property Documentation

- (NSString *) requestId [read, write, retain]

The requestId as assigned by the service.


The documentation for this class was generated from the following file: