public class

RfidException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.datalogic.device.rfid.RfidException

Class Overview

RFIDException is used for RFID reader related errors.

Summary

Constants
int COMMUNICATION_ERROR The RFID Service cannot perform an operation when communication with the RFID tag fails.
int DATA_SIZE_MISMATCH_ERROR The RFID Service cannot perform an operation when the data container is smaller than the requested size.
int GENERIC_ERROR Generic error, mostly due to a wrong parameter passed to a SDK method.
int LISTENER_ERROR The RFID Service cannot register or unregister the required listener.
int NOT_WORD_ADDRESSABLE_ERROR The RFID Service cannot perform an operation with not word addressable data.
int NULL_POINTER_ERROR It is a null pointer error.
int READER_BUSY_ERROR The RFID reader busy, cannot accept commands.
int READER_CANNOT_START A scanr session cannot be started because a condition is not met.
int READER_NOT_AVAILABLE_ERROR The RFID reader is not initialized or not connected.
int REMOTE_CALL_ERROR When it's not possible to call Datalogic service.
int RFID_SERVICE_ERROR It is a RFID Service error.
int SUCCESS Success constant.
int TAG_NOT_FOUND_ERROR The RFID Service cannot perform the operatin because it didn't found the requested tag.
int UNSUPPORTED_OPERATION_ERROR The RFID Service doesn't support the requested operation.
Fields
public int error_number The error number returned by the RFID Reader Subsystem.
Public Constructors
RfidException()
Constructs a RFIDException object.
RfidException(RfidException ex)
Constructs a RFIDException object.
RfidException(String s)
Constructs a RFIDException object that takes a String parameter containing the reason the exception was thrown.
RfidException(String s, int number)
Constructs a RFIDException object that takes a String parameter containing the reason the exception was thrown.
RfidException(int number)
Constructs a RFIDException object that takes a String parameter containing the reason the exception was thrown.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int COMMUNICATION_ERROR

Added in revision 50

The RFID Service cannot perform an operation when communication with the RFID tag fails.

Constant Value: -65524 (0xffff000c)

public static final int DATA_SIZE_MISMATCH_ERROR

Added in revision 50

The RFID Service cannot perform an operation when the data container is smaller than the requested size.

Constant Value: -65525 (0xffff000b)

public static final int GENERIC_ERROR

Added in revision 50

Generic error, mostly due to a wrong parameter passed to a SDK method.

Constant Value: -65534 (0xffff0002)

public static final int LISTENER_ERROR

Added in revision 50

The RFID Service cannot register or unregister the required listener.

Constant Value: -65529 (0xffff0007)

public static final int NOT_WORD_ADDRESSABLE_ERROR

Added in revision 50

The RFID Service cannot perform an operation with not word addressable data.

Constant Value: -65526 (0xffff000a)

public static final int NULL_POINTER_ERROR

Added in revision 50

It is a null pointer error.

Constant Value: -65535 (0xffff0001)

public static final int READER_BUSY_ERROR

Added in revision 50

The RFID reader busy, cannot accept commands.

Constant Value: -65532 (0xffff0004)

public static final int READER_CANNOT_START

Added in revision 50

A scanr session cannot be started because a condition is not met.

Constant Value: -65530 (0xffff0006)

public static final int READER_NOT_AVAILABLE_ERROR

Added in revision 50

The RFID reader is not initialized or not connected.

Constant Value: -65531 (0xffff0005)

public static final int REMOTE_CALL_ERROR

Added in revision 50

When it's not possible to call Datalogic service.

Constant Value: -65533 (0xffff0003)

public static final int RFID_SERVICE_ERROR

Added in revision 50

It is a RFID Service error.

Constant Value: -65536 (0xffff0000)

public static final int SUCCESS

Added in revision 50

Success constant.

Constant Value: 0 (0x00000000)

public static final int TAG_NOT_FOUND_ERROR

Added in revision 50

The RFID Service cannot perform the operatin because it didn't found the requested tag.

Constant Value: -65527 (0xffff0009)

public static final int UNSUPPORTED_OPERATION_ERROR

Added in revision 50

The RFID Service doesn't support the requested operation.

Constant Value: -65528 (0xffff0008)

Fields

public int error_number

Added in revision 50

The error number returned by the RFID Reader Subsystem.

Public Constructors

public RfidException ()

Added in revision 50

Constructs a RFIDException object.

public RfidException (RfidException ex)

Added in revision 50

Constructs a RFIDException object.

Parameters
ex A RfidException with an existing error code set.

public RfidException (String s)

Added in revision 50

Constructs a RFIDException object that takes a String parameter containing the reason the exception was thrown.

Parameters
s String indicating why the exception occurred.

public RfidException (String s, int number)

Added in revision 50

Constructs a RFIDException object that takes a String parameter containing the reason the exception was thrown.

Parameters
s String indicating why the exception occurred.
number int representing the error code number.

public RfidException (int number)

Added in revision 50

Constructs a RFIDException object that takes a String parameter containing the reason the exception was thrown.

Parameters
number int representing the error code number.