AmazonServiceException Class Reference
| Inherits from | AmazonClientException : NSException |
| Declared in | AmazonServiceException.h |
Tasks
-
requestIdThe requestId as assigned by the service.
property -
errorCodeThe error code returned by the service
property -
serviceNameproperty -
statusCodeThe HTTP status code returned by the service
property -
additionalFieldsOther fields in the error response from the service
property -
+ exceptionWithMessage:Return an exception with the given message
-
+ exceptionWithStatusCode:Return an exception with the given HTTP status code
-
+ exceptionWithMessage:withErrorCode:withStatusCode:withRequestId:Return an exception with the given message, error code, status, and request ID.
-
– initWithName:reason:userInfo:Initialize the exception with a name, reason and userInfo.
Properties
additionalFields
Other fields in the error response from the service
@property (nonatomic, readonly) NSMutableDictionary *additionalFieldsDiscussion
Other fields in the error response from the service
Declared In
AmazonServiceException.herrorCode
The error code returned by the service
@property (nonatomic, retain) NSString *errorCodeDiscussion
The error code returned by the service
Declared In
AmazonServiceException.hrequestId
The requestId as assigned by the service.
@property (nonatomic, retain) NSString *requestIdDiscussion
The requestId as assigned by the service.
Declared In
AmazonServiceException.hClass Methods
exceptionWithMessage:
Return an exception with the given message
+ (id)exceptionWithMessage:(NSString *)theMessageParameters
- theMessage
The user-friendly message
Discussion
Return an exception with the given message
Declared In
AmazonServiceException.hexceptionWithMessage: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 *)theRequestIdParameters
- 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.hInstance Methods
initWithName:reason:userInfo:
Initialize the exception with a name, reason and userInfo.
- (id)initWithName:(NSString *)name reason:(NSString *)reason userInfo:(NSDictionary *)userInfoParameters
- name
The name.
- reason
The reason.
- userInfo
The userInfo.
Discussion
Initialize the exception with a name, reason and userInfo.
Declared In
AmazonServiceException.h