| CustomiOSApi 1.06

- Main Page
- Classes

All Classes Functions Enumerations Enumerator Pages
/Users/sviluppo/Documents/sviluppo/CustomiOSApi/CustomiOSApi/CustomiOSApi/CustomError.h
1 //
2 // CustomError.h
3 // CustomiOSApi
4 //
5 // Created by CUSTOM on 05/07/13.
6 // Copyright (c) 2013 CUSTOM. All rights reserved.
7 //
8
9 #ifndef CUSTOMERROR_H_
10 #define CUSTOMERROR_H_
11
12 #import <Foundation/Foundation.h>
13
17 @interface CustomError : NSObject
18 {
19 @public
20
24 enum ErrorCodes
25 {
29 ERR_GENERIC = 0x00,
33 ERR_WRONGPICTURE = 0x01,
37 ERR_WRONGPARAMETERVALUE = 0x02,
41 ERR_PRINTERNOTCONNECTED = 0x03,
45 ERR_PRINTERCOMMUNICATIONERROR = 0x04,
49 ERR_WRONGPRINTERFONT = 0x05,
53 ERR_DEVICENOTSUPPORTED = 0x06,
57 ERR_DEVICENOTRECOGNIZED = 0x07,
61 ERR_INITCOMMUNICATIONERROR = 0x08,
65 ERR_OPERATIONINPROGRESS = 0x09,
69 ERR_DATABARCODE = 0x0A,
73 WNG_UNSUPPORTEDFUNCTION = 0xA1,
74 };
75
76 @protected
77
78 @private
79 }
80
81 //Hide it in the documentation
83 +(void) Create:(NSError**)error :(enum ErrorCodes)errcode;
84 +(void) Create:(NSError**)error :(enum ErrorCodes)errcode :(NSString*)strFormat ,...;
85 +(void) Init:(NSError**)error;
87
88 @end
89
90 #endif