1: 2: public class NegativeNumberException extends Exception 3: { 4: public NegativeNumberException( ) 5: { 6: super("Negative Number Exception!"); 7: } 8: public NegativeNumberException(String message) 9: { 10: super(message); 11: } 12: }