public class

DeviceException

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

Class Overview

This exception is used for device related errors.

Summary

Constants
int DEVICE_SERVICE_ERROR It is a Device Service error.
int GENERIC_ERROR Generic error, mostly due to a wrong parameter passed to a SDK method.
int INPUT_SERVICE_ERROR It is an Input Service error.
int LOCATION_SERVICE_ERROR It is an Location Service error.
int NOTIFICATION_SERVICE_ERROR It is an Notification Service error.
int NULL_POINTER_ERROR It is a null pointer error.
int POWER_SERVICE_ERROR It is an Power Service error.
int REMOTE_CALL_ERROR When it's not possible to call Datalogic service.
int SUCCESS Success constant.
int WAKEUP_SOURCE_ERROR It is a Wakeup Source error.
Fields
public int error_number The error number returned by the Device's system services.
Public Constructors
DeviceException()
Constructs a DeviceException object.
DeviceException(String s)
Constructs a DeviceException object that takes a String parameter containing the reason the exception was thrown.
DeviceException(String s, int number)
Constructs a DeviceException object that takes a String parameter containing the reason the exception was thrown.
DeviceException(int number)
Constructs a DeviceException 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 DEVICE_SERVICE_ERROR

Added in revision 1

It is a Device Service error.

Constant Value: -196608 (0xfffd0000)

public static final int GENERIC_ERROR

Added in revision 1

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

Constant Value: -196606 (0xfffd0002)

public static final int INPUT_SERVICE_ERROR

Added in revision 1

It is an Input Service error.

Constant Value: -196604 (0xfffd0004)

public static final int LOCATION_SERVICE_ERROR

Added in revision 1

It is an Location Service error.

Constant Value: -196601 (0xfffd0007)

public static final int NOTIFICATION_SERVICE_ERROR

Added in revision 1

It is an Notification Service error.

Constant Value: -196602 (0xfffd0006)

public static final int NULL_POINTER_ERROR

Added in revision 1

It is a null pointer error.

Constant Value: -196607 (0xfffd0001)

public static final int POWER_SERVICE_ERROR

Added in revision 1

It is an Power Service error.

Constant Value: -196603 (0xfffd0005)

public static final int REMOTE_CALL_ERROR

Added in revision 1

When it's not possible to call Datalogic service.

Constant Value: -196605 (0xfffd0003)

public static final int SUCCESS

Added in revision 1

Success constant.

Constant Value: 0 (0x00000000)

public static final int WAKEUP_SOURCE_ERROR

Added in revision 1

It is a Wakeup Source error.

Constant Value: -196600 (0xfffd0008)

Fields

public int error_number

Added in revision 1

The error number returned by the Device's system services.

Public Constructors

public DeviceException ()

Added in revision 1

Constructs a DeviceException object.

public DeviceException (String s)

Added in revision 1

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

Parameters
s String indicating why the exception occurred.

public DeviceException (String s, int number)

Added in revision 1

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

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

public DeviceException (int number)

Added in revision 1

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

Parameters
number int indicating the error code number.