Source of ExerciseException.java


  1: public class ExerciseException extends Exception
  2: {
  3:     public ExerciseException( )
  4:     {
  5:         super("Exercise exception thrown!");
  6:         System.out.println("Exception thrown.");
  7:     }
  8:     public ExerciseException(String message)
  9:     {
 10:         super(message);
 11:         System.out.println(
 12:           "ExerciseException invoked with an argument.");
 13:     }
 14: }