53
Chapter 4 API Reference
4
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To set the underline style:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextStyle(Builder.PARAM_UNSPECIFIED, Builder.TRUE,
Builder.PARAM_UNSPECIFIED, Builder.PARAM_UNSPECIFIED);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}