java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | com.datalogic.itemtracking.ItemTrackingException |
This exception is used to handle errors related to item tracking. It provides predefined error constants and constructors to create exceptions with custom messages and specific error codes.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | GENERIC_ERROR | Constant representing a generic error. | |||||||||
int | REMOTE_CALL_ERROR | Constant indicating an error when calling the internal service. | |||||||||
int | SESSION_RELEASED_ERROR | Constant indicating an error when attempting to call a session method after the session has been released. | |||||||||
int | SUCCESS | Constant representing a successful operation. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
error_number | The error number returned by system services. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constant representing a generic error.
Constant indicating an error when calling the internal service.
Constant indicating an error when attempting to call a session method after the session has been released.
Constant representing a successful operation.
The error number returned by system services. This field identifies the specific type of error that occurred. Applications can use this field to implement custom error handling logic. Example:
try { // Some item tracking operation } catch (ItemTrackingException e) { if (e.error_number == ItemTrackingException.REMOTE_CALL_ERROR) { // Handle remote call error } }