Create 3 exception classes; NumberHighException, NumberLowException, and NumberNegativeException. Both NumberHigh Exception and NumberLowException should be directly subclassed from the Exception class, but NumberNegativeException should be subclassed from NumberLowException. The BadDataException class should be the model for your exception classes (referenced at the bottom).
Get Free Quote!
370 Experts Online