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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • None
    • core / taglib.core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: