CustomAndroidAPI  1.30
it.custom.printer.api.android.CustomException Class Reference

Public Member Functions

 CustomException (long lErrorCode)
 
 CustomException (long lErrorCode, String strAddErrorDescr)
 
 CustomException (String strMessage)
 
long GetErrorCode ()
 
String toString ()
 
String getMessage ()
 
String getAddMessage ()
 

Static Public Attributes

static final int ERR_GENERIC = 0
 
static final int ERR_WRONGPICTURE = 1
 
static final int ERR_WRONGPARAMETERVALUE = 2
 
static final int ERR_PRINTERNOTCONNECTED = 3
 
static final int ERR_PRINTERCOMMUNICATIONERROR = 4
 
static final int ERR_WRONGPRINTERFONT = 5
 
static final int ERR_DEVICENOTSUPPORTED = 6
 
static final int ERR_DEVICENOTRECOGNIZED = 7
 
static final int ERR_INITCOMMUNICATIONERROR = 8
 
static final int ERR_UNSUPPORTEDFUNCTION = 9
 
static final int ERR_DATABARCODE = 10
 
static final int ERR_DATANOTAVAILABLE = 11
 

Detailed Description

Exception class for CustomAndroidAPI

Constructor & Destructor Documentation

◆ CustomException() [1/3]

it.custom.printer.api.android.CustomException.CustomException ( long  lErrorCode)
inline

◆ CustomException() [2/3]

it.custom.printer.api.android.CustomException.CustomException ( long  lErrorCode,
String  strAddErrorDescr 
)
inline

◆ CustomException() [3/3]

it.custom.printer.api.android.CustomException.CustomException ( String  strMessage)
inline

Member Function Documentation

◆ getAddMessage()

String it.custom.printer.api.android.CustomException.getAddMessage ( )
inline

Returns the Additional Error String description

Returns
the Additional Error String description

◆ GetErrorCode()

long it.custom.printer.api.android.CustomException.GetErrorCode ( )
inline

Returns the error code

Returns
the error code

◆ getMessage()

String it.custom.printer.api.android.CustomException.getMessage ( )
inline

Returns the String with the error code and its description

Returns
the String with the error code and its description

◆ toString()

String it.custom.printer.api.android.CustomException.toString ( )
inline

Returns the String with the error code and its description

Returns
the String with the error code and its description

Member Data Documentation

◆ ERR_DATABARCODE

final int it.custom.printer.api.android.CustomException.ERR_DATABARCODE = 10
static

Indicates that an Error during the printer of Barcode

◆ ERR_DATANOTAVAILABLE

final int it.custom.printer.api.android.CustomException.ERR_DATANOTAVAILABLE = 11
static

Indicates that an Error during the get of data from the device

◆ ERR_DEVICENOTRECOGNIZED

final int it.custom.printer.api.android.CustomException.ERR_DEVICENOTRECOGNIZED = 7
static

Indicates that an Error because this device is not recognized

◆ ERR_DEVICENOTSUPPORTED

final int it.custom.printer.api.android.CustomException.ERR_DEVICENOTSUPPORTED = 6
static

Indicates that an Error because this device is not supported

◆ ERR_GENERIC

final int it.custom.printer.api.android.CustomException.ERR_GENERIC = 0
static

Indicates that an Generic Error

◆ ERR_INITCOMMUNICATIONERROR

final int it.custom.printer.api.android.CustomException.ERR_INITCOMMUNICATIONERROR = 8
static

Indicates that an Error during the init communication with the printer

◆ ERR_PRINTERCOMMUNICATIONERROR

final int it.custom.printer.api.android.CustomException.ERR_PRINTERCOMMUNICATIONERROR = 4
static

Indicates that an Error during the communication with the printer

◆ ERR_PRINTERNOTCONNECTED

final int it.custom.printer.api.android.CustomException.ERR_PRINTERNOTCONNECTED = 3
static

Indicates that the printer isn't connected

◆ ERR_UNSUPPORTEDFUNCTION

final int it.custom.printer.api.android.CustomException.ERR_UNSUPPORTEDFUNCTION = 9
static

Indicates that this printer do not support this function

◆ ERR_WRONGPARAMETERVALUE

final int it.custom.printer.api.android.CustomException.ERR_WRONGPARAMETERVALUE = 2
static

Indicates that an Error on a parameter value

◆ ERR_WRONGPICTURE

final int it.custom.printer.api.android.CustomException.ERR_WRONGPICTURE = 1
static

Indicates that an Error on the Picture to print

◆ ERR_WRONGPRINTERFONT

final int it.custom.printer.api.android.CustomException.ERR_WRONGPRINTERFONT = 5
static

Indicates that an Error on the PrinterFont Class