InsufficientBatteryException
public exception InsufficientBatteryException extends Exception
Constructors
InsufficientBatteryException
public InsufficientBatteryException(int batteryLevel, int thresholdLevel)
Parameters
| Name | Description |
|---|---|
int batteryLevel
|
|
int thresholdLevel
|
Methods
getBatteryLevel
public int getBatteryLevel()
ReturnValue
| Name | Description |
|---|---|
int
|
getThresholdLevel
public int getThresholdLevel()
ReturnValue
| Name | Description |
|---|---|
int
|
Exception will be thrown in case of low battery.