Inherits from AmazonClientException : NSException
Declared in AmazonServiceException.h

Overview

Represents an AWS Service Exception.

Tasks

Properties

additionalFields

Other fields in the error response from the service

@property (nonatomic, readonly) NSMutableDictionary *additionalFields

Discussion

Other fields in the error response from the service

Declared In

AmazonServiceException.h

errorCode

The error code returned by the service

@property (nonatomic, retain) NSString *errorCode

Discussion

The error code returned by the service

Declared In

AmazonServiceException.h

requestId

The requestId as assigned by the service.

@property (nonatomic, retain) NSString *requestId

Discussion

The requestId as assigned by the service.

Declared In

AmazonServiceException.h

serviceName

@property (nonatomic, retain) NSString *serviceName

Discussion

Declared In

AmazonServiceException.h

statusCode

The HTTP status code returned by the service

@property (nonatomic) NSInteger statusCode

Discussion

The HTTP status code returned by the service

Declared In

AmazonServiceException.h

Class Methods

exceptionWithMessage:

Return an exception with the given message

+ (id)exceptionWithMessage:(NSString *)theMessage

Parameters

theMessage

The user-friendly message

Discussion

Return an exception with the given message

Declared In

AmazonServiceException.h

exceptionWithMessage:withErrorCode:withStatusCode:withRequestId:

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

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

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.

Return Value

The exception.

Discussion

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

Declared In

AmazonServiceException.h

exceptionWithStatusCode:

Return an exception with the given HTTP status code

+ (id)exceptionWithStatusCode:(int)theStatusCode

Parameters

theStatusCode

The HTTP status code.

Discussion

Return an exception with the given HTTP status code

Declared In

AmazonServiceException.h

Instance Methods

initWithName:reason:userInfo:

Initialize the exception with a name, reason and userInfo.

- (id)initWithName:(NSString *)name reason:(NSString *)reason userInfo:(NSDictionary *)userInfo

Parameters

name

The name.

reason

The reason.

userInfo

The userInfo.

Discussion

Initialize the exception with a name, reason and userInfo.

Declared In

AmazonServiceException.h