| CPTiOSApi 1.25

- Main Page
- Classes

All Classes Functions Variables Enumerations Enumerator Pages
/Users/sviluppo/marco/CPTApi/CustomXmliOSApi/CustomXmliOSApi/CustomXmlError.h
1 //
2 // CustomXmlError.h
3 // CustomXmlTest
4 //
5 // Created by sviluppo on 19/03/14.
6 // Copyright (c) 2014 CUSTOM. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11
12
13 #define CUSTOM_XML_RETCODE_SUCCESS 0
14 #define CUSTOM_XML_RETCODE_FAILURE -1
15
16
17
21 @interface CustomXmlError : NSObject
22
23
24 {
25 @public
26
30 enum ErrorCodes
31 {
35 CUSTOM_XMLPRINT_SUCCESS = 0,
39 CUSTOM_XMLPRINT_GENERIC_FAILURE = 1,
43 CUSTOM_XMLPRINT_INVALID_ARGUMENT = 2,
47 CUSTOM_XMLPRINT_NOT_VALID_PRINTER = 3,
51 CUSTOM_XMLPRINT_INTERNAL_LIBRARY_ERROR = 4,
55 CUSTOM_XMLPRINT_LIBRARY_ERROR = 5,
59 CUSTOM_XMLPRINT_PARSE_ERROR = 6,
63 CUSTOM_XMLPRINT_NOT_CUSTOM_PRINTER = 7,
67 CUSTOM_XMLPRINT_FEATURE_NOT_ENABLED = 8,
71 CUSTOM_XMLPRINT_NO_MATCH = 9,
75 CUSTOM_XMLPRINT_SECURITY_ERROR = 10,
79 CUSTOM_XMLPRINT_FONT_NOT_AVAILABLE = 11,
80
81 };
82
83 @protected
84
85 @private
86 }
87
88 //Hide it in the documentation
90 +(void) Create:(NSError**)error :(enum ErrorCodes)errcode;
91 +(void) Create:(NSError**)error :(enum ErrorCodes)errcode :(NSString*)strFormat ,...;
92 +(void) Init:(NSError**)error;
94
95
96
97
98
99 @end