| CustomiOSApi 1.09

/Users/user/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
CustomError
Error class for CeiOSApi
Definition: CustomError.h:18
CustomError::ErrorCodes
ErrorCodes
Errors / Warnings Descriptions
Definition: CustomError.h:25
CustomError::ERR_PRINTERNOTCONNECTED
@ ERR_PRINTERNOTCONNECTED
Definition: CustomError.h:41
CustomError::ERR_OPERATIONINPROGRESS
@ ERR_OPERATIONINPROGRESS
Definition: CustomError.h:65
CustomError::ERR_PRINTERCOMMUNICATIONERROR
@ ERR_PRINTERCOMMUNICATIONERROR
Definition: CustomError.h:45
CustomError::ERR_WRONGPRINTERFONT
@ ERR_WRONGPRINTERFONT
Definition: CustomError.h:49
CustomError::ERR_WRONGPICTURE
@ ERR_WRONGPICTURE
Definition: CustomError.h:33
CustomError::ERR_WRONGPARAMETERVALUE
@ ERR_WRONGPARAMETERVALUE
Definition: CustomError.h:37
CustomError::ERR_DEVICENOTSUPPORTED
@ ERR_DEVICENOTSUPPORTED
Definition: CustomError.h:53
CustomError::ERR_DEVICENOTRECOGNIZED
@ ERR_DEVICENOTRECOGNIZED
Definition: CustomError.h:57
CustomError::WNG_UNSUPPORTEDFUNCTION
@ WNG_UNSUPPORTEDFUNCTION
Definition: CustomError.h:73
CustomError::ERR_DATABARCODE
@ ERR_DATABARCODE
Definition: CustomError.h:69
CustomError::ERR_INITCOMMUNICATIONERROR
@ ERR_INITCOMMUNICATIONERROR
Definition: CustomError.h:61
CustomError::ERR_GENERIC
@ ERR_GENERIC
Definition: CustomError.h:29