Revision: 5659 http://sourceforge.net/p/jump-pilot/code/5659 Author: edso Date: 2018-01-04 17:52:07 +0000 (Thu, 04 Jan 2018) Log Message: ----------- allow ParseException to wrap the causing exception
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/io/ParseException.java Modified: core/trunk/src/com/vividsolutions/jump/io/ParseException.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/io/ParseException.java 2018-01-04 17:36:40 UTC (rev 5658) +++ core/trunk/src/com/vividsolutions/jump/io/ParseException.java 2018-01-04 17:52:07 UTC (rev 5659) @@ -53,6 +53,10 @@ super(message); } + public ParseException(String message, Throwable cause) { + super(message, cause); + } + /** * More explictly construct a parse exception. * Resulting message will be :message + " in file '" + newFname +"', line " + newLineno + ", char " + newCpos @@ -63,9 +67,13 @@ * @param newCharPos character position on the line */ public ParseException(String message, String newFileName, int newLineNumber, int newCharPos) { - super(message + " in file '" + newFileName + "', line " + newLineNumber + - ", char " + newCharPos); + this(message, newFileName, newLineNumber, newCharPos, null); + } + public ParseException(String message, String newFileName, int newLineNumber, int newCharPos, Throwable cause) { + this(message + " in file '" + newFileName + "', line " + newLineNumber + + ", char " + newCharPos, cause); + fileName = newFileName; lineNumber = newLineNumber; charPos = newCharPos; ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel