/** * Exceptions that are thrown when two things cannot be * compared. * * @author Samuel A. Rebelsky * @version 1.1 of October 1999 */ public class IncomparableException extends Exception { /** Just "Are you crazy? I can't compare these things". */ public IncomparableException() { super(); } // IncomparableException() /** The more verbose "I can't compare these things because ...". */ public IncomparableException(String reason) { super(reason); } // IncomparableException(String) } // class IncomparableException