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.
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. |
Represents an AWS Service Exception.
+ (AmazonServiceException * AmazonServiceException.)exceptionWithMessage: | (NSString *) | theMessage |
Return an exception with the given message.
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.
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. |
+ (AmazonServiceException * AmazonServiceException.)exceptionWithStatusCode: | (int) | theStatusCode |
Return an exception with the given HTTP status code.
theStatusCode | The HTTP status code. |
- (id AmazonServiceException.)initWithMessage: | (NSString *) | message |
Initialize the exeption with a message.
message | The message. |
Implements AmazonClientException.
Implemented in 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.
- (NSString *) requestId [read, write, retain] |
The requestId as assigned by the service.