/*
 * $Log: GenericException.java,v $
# Revision 1.7  1996/10/08  16:04:09  inder
# documented in javadoc style.
#
# Revision 1.6  1996/04/22  17:45:40  inder
# changed order of parameters in constructor.
#
# Revision 1.5  1996/04/15  20:24:42  inder
# implemented the new constructor for printing class name and hascode as
# well.
#
# Revision 1.4  1996/04/15  03:25:48  inder
# passing complaint to super() in constructor.
#
# Revision 1.3  1996/04/14  22:41:56  inder
# derived it from RuntimeException.
#
 */
//////////////////////////////////////////////////
package general;

// Standard packages
// none.

// Packages specific to Network Design Tool.
// none.
//////////////////////////////////////////////////
public class GenericException extends RuntimeException {
//************************************************
  /** Sets the message in base class to complaint. */
public GenericException(String Complaint) {	   
// REQUIRES: nothing.
// RETURNS: nothing.
  super(Complaint);
}
//************************************************
  /**
   * Sets the message in base class to include class name and hashcode of
   Complainer.  
   * REQUIRES: Complainer is the object (obtained by keyword this) in
   which this exception occured. 
   */
public GenericException(Object Complainer, String Complaint) {
  super("Exception occured in " + Complainer.getClass().getName() + 
	" (Object id " + Complainer.hashCode() + ") : " + Complaint);   
}
//************************************************
}
//////////////////////////////////////////////////
