Accela SDK for iOS  V3.0
/Users/alan/Accela/AccelaMobile/AccelaMobile/AMError.h
00001 //
00002 //  ACError.h
00003 //  Accela SDK
00004 //
00005 //  Created by Alan Long on 01/10/12.
00006 //  Copyright 2011 Accela Inc. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 
00011 #define ERROR_CODE_JSON_PARSING 1008
00012 
00013 #define ERROR_CODE_BUSINESS 1009
00014 
00015 #define ERROR_CODE_Bad_Request 400
00016 
00017 #define ERROR_CODE_Unauthorized 401
00018 
00019 #define ERROR_CODE_Forbidden 403
00020 
00021 #define ERROR_CODE_Not_Found 404
00022 
00023 #define ERROR_CODE_Internal_Server_Error 500
00024 
00025 #define ERROR_CODE_CONNECTION_FAILURE 599
00026 
00027 @interface AMError : NSError {
00028 
00029 }
00030 
00040 + (id)errorWith: (NSError *)error;
00041 
00046 @property (strong,nonatomic) NSString *errorMessage;
00047 
00052 @property (strong,nonatomic) NSString *traceId;
00053 
00058 @property (strong,nonatomic) NSString *more;
00059 
00060 @end
00061 
00066 typedef void (^AMErrorBlock)(AMError *error);
 All Classes Functions Properties