Source of NegativeNumberException.java


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