93
Chapter 4 API Reference
4
getErrorStatus
Acquire the error status from an exception.
Syntax
public int getErrorStatus()
Return value
Returns the error status set by the API in which an exception occurred.
Example
try {
printer.openPrinter(Print.DEVTYPE_TCP, "192.168.192.168");
} catch (EposException e) {
int errStatus = e.getErrorStatus();
if (errStatus == EposException.ERR_OPEN) {
///Process///
}
}
To acquire the error status from EposException.