InsufficientBatteryException

public exception InsufficientBatteryException extends Exception

Exception will be thrown in case of low battery.

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