* Log invalid number when expecting numeric response from projector
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
str = subStr[0];
}
- return Integer.parseInt(str, radix);
+ try {
+ return Integer.parseInt(str, radix);
+ } catch (NumberFormatException nfe) {
+ throw new EpsonProjectorCommandException(
+ "Unable to parse response '" + str + "' as Integer for command: " + query);
+ }
}
protected int queryInt(String query, int timeout) throws EpsonProjectorCommandException, EpsonProjectorException {