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

 //

 // File:    BoundsException.java

 //

 // Purpose: An integer or floating point is not within a pre-defined

 //          set of bounds.  (e.g. probabilities need to be between 0

 //                  and 1)

 //

 // Authors:

 //   txe  Travis Emmitt  emmitt@virginia.edu

 //

 // Modifications:

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

 //

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

 
 public class BoundsException extends Exception {
   public BoundsException (String message) {
         super (message);
     }
   public BoundsException (String name, int value, int lower) {
         super (name + " = " + value + ", not at least " + lower);
     }
   public BoundsException (String name, int value, int lower, int upper) {
         super (name + " = " + value + ", not between " + lower + " and " + upper);
     }
   public BoundsException (String name, double value, double lower) {
         super (name + " = " + value + ", not at least " + lower);
     }
   public BoundsException (String name, double value, double lower, double upper) {
         super (name + " = " + value + ", not between " + lower + " and " + upper);
     }
 }
 
 /////////////////////////////////////////////////////////////////////////////