java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | com.datalogic.device.battery.BatteryException |
This exception is used for installer related errors.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CONTEXT_UNKNOWN | This error happens when the registration to receive battery events addBatteryEventListener(BatteryEventListener)
is done without having called initBatteryEvents(Context) . |
|||||||||
int | GENERIC_ERROR | Generic error, mostly due to a wrong parameter passed to a SDK method. | |||||||||
int | NULL_POINTER_ERROR | Null pointer error. | |||||||||
int | SUCCESS | Success constant. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
error_number | The error number returned by the Installer's system services. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an BatteryException object.
| |||||||||||
Constructs an BatteryException object that takes a
String parameter containing the reason the exception was
thrown. | |||||||||||
Constructs an BatteryException object that takes a
String parameter containing the reason the exception was
thrown. | |||||||||||
Constructs an BatteryException 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
|
This error happens when the registration to receive battery events addBatteryEventListener(BatteryEventListener)
is done without having called initBatteryEvents(Context)
.
Generic error, mostly due to a wrong parameter passed to a SDK method.
Null pointer error.
Success constant.
The error number returned by the Installer's system services.
Constructs an BatteryException object that takes a
String
parameter containing the reason the exception was
thrown.
s | String indicating why the exception occurred.
|
---|
Constructs an BatteryException object that takes a
String
parameter containing the reason the exception was
thrown.
s | String indicating why the exception occurred. |
---|---|
number | int indicating the error code number.
|
Constructs an BatteryException object that takes a
String
parameter containing the reason the exception was
thrown.
number | int indicating the error code number.
|
---|