package rpi.goldsd.graph; /** * The InAnotherGraphException class represents an exception that * should be thrown when either a vertex or an edge is in a given graph * G, yet the add() method is used to add the vertex or * edge to a different graph H. * * @version 2.0, 3/28/98 * @author David Goldschmidt */ public class InAnotherGraphException extends RuntimeException { /** * The default constructor simply calls the default constructor * of the parent class RuntimeException. */ public InAnotherGraphException() { super(); } /** * This constructor calls the corresponding constructor of the * parent class RuntimeException with the String * argument to be displayed. * @param s the String object to be displayed. */ public InAnotherGraphException( String s ) { super( s ); } }