Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
None
Description
JellyExceptions are often created without supplying location information. A little change to the JellyException.getMessage() can improve the readability of the error message, as follows:
public String getMessage()
{ if(fileName==null && lineNumber==-1 && columnNumber==-1 && elementName==null) return getReason(); else return fileName + ":" + lineNumber + ":" + columnNumber + ": <" + elementName + "> " + getReason(); }