Accela SDK for iOS  V3.2
 All Classes Functions Properties Pages
AMError.h
1 //
2 // ACError.h
3 // Accela SDK
4 //
5 // Created by Alan Long on 01/10/12.
6 // Copyright 2011 Accela Inc. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 #define ERROR_CODE_JSON_PARSING 1008
12 
13 #define ERROR_CODE_BUSINESS 1009
14 
15 #define ERROR_CODE_Bad_Request 400
16 
17 #define ERROR_CODE_Unauthorized 401
18 
19 #define ERROR_CODE_Forbidden 403
20 
21 #define ERROR_CODE_Not_Found 404
22 
23 #define ERROR_CODE_Internal_Server_Error 500
24 
25 #define ERROR_CODE_CONNECTION_FAILURE 599
26 
27 @interface AMError : NSError {
28 
29 }
30 
40 + (id)errorWith: (NSError *)error;
41 
46 @property (strong,nonatomic) NSString *errorMessage;
47 
52 @property (strong,nonatomic) NSString *traceId;
53 
58 @property (strong,nonatomic) NSString *more;
59 
60 @end
61 
66 typedef void (^AMErrorBlock)(AMError *error);
Definition: AMError.h:27