//////////////////////////////////////////////////////////////////////////// // // File: NewException.java // // Purpose: There was an error creating an object or array via "new". // // Authors: // txe Travis Emmitt emmitt@virginia.edu // // Modifications: // 15-NOV-1998 txe (v2) Initial creation // //////////////////////////////////////////////////////////////////////////// public class NewException extends Exception { public NewException (String name) { super ("Error creating new object: " + name); } public NewException (String name, int size) { super ("Error creating new array: " + name + " [" + size + "]"); } } /////////////////////////////////////////////////////////////////////////////