Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-233

JellyException.getMessage() shouldn't show pointless "null:-1:-1:<null>" in the error message

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: core / taglib.core
    • Labels:
      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(); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kohsuke Kohsuke Kawaguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: