// // NegativeNumberException.java // // P.689, Listing 9.9 // public class NegativeNumberException extends Exception { public NegativeNumberException() { super("Negative Number Exception!"); } public NegativeNumberException(String msg) { super(msg); } }