public class DeviceException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static int |
DEVICE_SERVICE_ERROR
It is a Device Service error.
|
int |
error_number
The error number returned by the Device's system services.
|
static int |
GENERIC_ERROR
Generic error, mostly due to a wrong parameter passed to a SDK method.
|
static int |
INPUT_SERVICE_ERROR
It is an Input Service error.
|
static int |
LOCATION_SERVICE_ERROR
It is an Location Service error.
|
static int |
NOTIFICATION_SERVICE_ERROR
It is an Notification Service error.
|
static int |
NULL_POINTER_ERROR
It is a null pointer error.
|
static int |
POWER_SERVICE_ERROR
It is an Power Service error.
|
static int |
REMOTE_CALL_ERROR
When it's not possible to call Datalogic service.
|
static int |
SUCCESS
Success constant.
|
static int |
WAKEUP_SOURCE_ERROR
It is a Wakeup Source error.
|
| Constructor and Description |
|---|
DeviceException()
Constructs a DeviceException object.
|
DeviceException(int number)
Constructs a DeviceException object that takes a
String parameter containing the reason the exception was
thrown. |
DeviceException(java.lang.String s)
Constructs a DeviceException object that takes a
String parameter containing the reason the exception was
thrown. |
DeviceException(java.lang.String s,
int number)
Constructs a DeviceException object that takes a
String parameter containing the reason the exception was
thrown. |
public static final int SUCCESS
public static final int DEVICE_SERVICE_ERROR
public static final int NULL_POINTER_ERROR
public static final int GENERIC_ERROR
public static final int REMOTE_CALL_ERROR
public static final int INPUT_SERVICE_ERROR
public static final int POWER_SERVICE_ERROR
public static final int NOTIFICATION_SERVICE_ERROR
public static final int LOCATION_SERVICE_ERROR
public static final int WAKEUP_SOURCE_ERROR
public int error_number
public DeviceException()
public DeviceException(java.lang.String s)
String parameter containing the reason the exception was
thrown.s - String indicating why the exception occurred.public DeviceException(java.lang.String s,
int number)
String parameter containing the reason the exception was
thrown.s - String indicating why the exception occurred.number - int indicating the error code number.public DeviceException(int number)
String parameter containing the reason the exception was
thrown.number - int indicating the error code number.