Source of NegativeNumberException.java


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