public class BatteryException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTEXT_UNKNOWN
This error happens when the registration to receive battery events
DLBatteryManager.addBatteryEventListener(com.datalogic.device.battery.BatteryEventListener)
is done without having called DLBatteryManager.initBatteryEvents(android.content.Context). |
int |
error_number
The error number returned by the Installer's system services.
|
static int |
GENERIC_ERROR
Generic error, mostly due to a wrong parameter passed to a SDK method.
|
static int |
NULL_POINTER_ERROR
Null pointer error.
|
static int |
SUCCESS
Success constant.
|
| Constructor and Description |
|---|
BatteryException()
Constructs an BatteryException object.
|
BatteryException(int number)
Constructs an BatteryException object that takes a
String parameter containing the reason the exception was
thrown. |
BatteryException(java.lang.String s)
Constructs an BatteryException object that takes a
String parameter containing the reason the exception was
thrown. |
BatteryException(java.lang.String s,
int number)
Constructs an BatteryException object that takes a
String parameter containing the reason the exception was
thrown. |
public static final int SUCCESS
public static final int NULL_POINTER_ERROR
public static final int CONTEXT_UNKNOWN
DLBatteryManager.addBatteryEventListener(com.datalogic.device.battery.BatteryEventListener)
is done without having called DLBatteryManager.initBatteryEvents(android.content.Context).public static final int GENERIC_ERROR
public int error_number
public BatteryException()
public BatteryException(java.lang.String s)
String parameter containing the reason the exception was
thrown.s - String indicating why the exception occurred.public BatteryException(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 BatteryException(int number)
String parameter containing the reason the exception was
thrown.number - int indicating the error code number.