Exceptions
When processing fails, EposException is thrown with one of the following error values.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
Example
try {
Bitmap imageData = null;
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
///Process///
builder.addImage(imageData, 0, 0, 256, 256, Builder.PARAM_DEFAULT);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
To print an image 256 dots wide and 256 dots high in page mode:
try {
Bitmap imageData = null;
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
///Process///
builder.addPageBegin();
builder.addPagePosition(0, 255);
builder.addImage(imageData, 0, 0, 256, 256, Builder.PARAM_DEFAULT);
builder.addPageEnd();
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}
58
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
Description