9 #import <Foundation/Foundation.h>
11 #define ERROR_CODE_JSON_PARSING 1008
13 #define ERROR_CODE_BUSINESS 1009
15 #define ERROR_CODE_Bad_Request 400
17 #define ERROR_CODE_Unauthorized 401
19 #define ERROR_CODE_Forbidden 403
21 #define ERROR_CODE_Not_Found 404
23 #define ERROR_CODE_Internal_Server_Error 500
25 #define ERROR_CODE_CONNECTION_FAILURE 599
40 + (id)errorWith: (NSError *)error;
46 @property (strong,nonatomic) NSString *errorMessage;
52 @property (strong,nonatomic) NSString *traceId;
58 @property (strong,nonatomic) NSString *more;
66 typedef void (^AMErrorBlock)(
AMError *error);