public class

ItemTrackingException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.datalogic.itemtracking.ItemTrackingException

Class Overview

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.

Summary

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
public int error_number The error number returned by system services.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int GENERIC_ERROR

Added in revision 46

Constant representing a generic error.

Constant Value: -1 (0xffffffff)

public static final int REMOTE_CALL_ERROR

Added in revision 46

Constant indicating an error when calling the internal service.

Constant Value: -2 (0xfffffffe)

public static final int SESSION_RELEASED_ERROR

Added in revision 46

Constant indicating an error when attempting to call a session method after the session has been released.

Constant Value: -3 (0xfffffffd)

public static final int SUCCESS

Added in revision 46

Constant representing a successful operation.

Constant Value: 0 (0x00000000)

Fields

public int error_number

Added in revision 46

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
     }
 }