//////////////////////////////////////////////////////////////////////////// // // File: ParsingException.java // // Purpose: A string could not be properly parsed. This happens // when a predefined input format is violated. // // Authors: // txe Travis Emmitt emmitt@virginia.edu // // Modifications: // 15-NOV-1998 txe (v2) Initial creation // //////////////////////////////////////////////////////////////////////////// public class ParsingException extends Exception { public ParsingException (String value) { super ("Error parsing '" + value + "'"); } public ParsingException (String name, String value) { super ("Error parsing " + name + ": '" + value + "'"); } public ParsingException (String name, String value, String goal) { super ("Error getting " + goal + " from " + name + ": '" + value + "'"); } } /////////////////////////////////////////////////////////////////////////////