////////////////////////////////////////////////////////////////////////////

 //

 // File:    EqualityException.java

 //

 // Purpose: A value does not equal its expected value.  This is

 //          used primarily for sanity checking.

 //

 // Authors:

 //   txe  Travis Emmitt  emmitt@virginia.edu

 //

 // Modifications:

 //   15-NOV-1998  txe  (v2) Initial creation

 //

 ////////////////////////////////////////////////////////////////////////////

 
 public class EqualityException extends Exception {
   public EqualityException (String message) {
         super (message);
     }
   public EqualityException (String name, int value, int goal) {
         super (name + " = " + value + ", should be " + goal);
     }
   public EqualityException (String name, double value, double goal) {
         super (name + " = " + value + ", should be " + goal);
     }
   public EqualityException (String name, String value, String goal) {
         super (name + " doesn't match expected string:\n"
                      + "  actual:\t'" + value + "'\n"
                      + "  target:\t'" + goal  + "'\n");
     }
 }
 
 /////////////////////////////////////////////////////////////////////////////