00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #import <Foundation/Foundation.h>
00017 #import "AmazonClientException.h"
00018 #import "AmazonSDKUtil.h"
00019
00021 @interface AmazonServiceException : AmazonClientException {
00022 NSString *requestId;
00023 NSString *errorCode;
00024 NSString *serviceName;
00025 NSInteger statusCode;
00026 NSMutableDictionary *additionalFields;
00027 }
00028
00029 #pragma mark Properties
00030
00032 @property(nonatomic,retain) NSString* requestId;
00033
00035 @property(nonatomic,retain) NSString* errorCode;
00036
00038 @property(nonatomic,retain) NSString* serviceName;
00039
00041 @property(nonatomic) NSInteger statusCode;
00042
00044 @property(nonatomic, readonly)NSMutableDictionary* additionalFields;
00045
00050 -(id)initWithMessage:(NSString *)message;
00051
00056 +(AmazonServiceException *)exceptionWithMessage:(NSString *)theMessage;
00057
00062 +(AmazonServiceException *)exceptionWithStatusCode:(int)theStatusCode;
00063
00072 +(AmazonServiceException *)exceptionWithMessage:(NSString *)theMessage
00073 withErrorCode:(NSString *)theErrorCode
00074 withStatusCode:(NSInteger)theStatusCode
00075 withRequestId:(NSString *)theRequestId;
00076 -(void)setPropertiesWithException:(AmazonServiceException *)theException;
00077 -(NSString*)description;
00078
00079
00080
00081 @end
00082