Select your printer model
<error>
Acquires a device control command in <device_data>, service control command error in <service_data>, and other common errors, and then notifies the application of the error.
Response
Element |
Data type |
Description |
---|---|---|
sequence |
string |
ID to identify the message causing the error |
device_id |
string |
Device ID which generated the error |
code |
string |
Displays the error as a code. |
data |
string |
Error details corresponding to the driver upon DRIVER_ERROR occurrence |
data_id |
int |
One of the following values is set depending on the value set in <buffer> of the <open_device> message.
|
code
- Error in device_data
-
Element value
Description
“DEVICE_NOT_FOUND"
The specified device ID does not exist.
“DEVICE_NOT_OPEN"
The specified device is not open.
“SEND_ERROR”
Error occurred when sending data to the corresponding physical device.
“DRIVER_ERROR”
Error was detected in the driver.
“PARAM_ERROR”
A parameter error occurred.
“FUNCTION_NOT_FOUND”
The specified function does not exist in the driver.
- Error in service_data
-
Element value
Description
“SERVICE_NOT_FOUND”
The specified service ID does not exist.
“SEND_ERROR”
An error occurred while sending data.
“PARAM_ERROR”
A parameter error occurred.
- Other errors
-
Element value
Description
“COMMAND_ILLEGAL”
The XML contains a syntax error.
“SYSTEM_ERROR”
A system error occurred.
Sample program
<error> <sequence>123</sequence> <device_id>scanner002</device_id> <code>DEVICE_NOT_OPEN</code> <data></data> <data_id>2</data_id> </error> |
Supplementary explanation
- The value specified in the sequence element of the <device_data> or <service_data> request is passed to sequence.
- device_id is set for an error in <device_data>.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix