Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-341

Errors needs to provide more information on caught exceptions.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.1
    • 3.2
    • None

    Description

      I have a method bar() that happens to throw a NullPointerException. A bug, of course. But when I use the following expression in JEXL:

      foo.bar()

      The JexlException.getMessage() result is:

      io.guise.mesh.JexlMexlEvaluator.evaluate@1:… bar

      This is too little information to be helpful (and too much irrelevant information— see JEXL-340). If a NullPointerException occurred during invocation of the method, it would be nice to know that. Otherwise the developer has no idea if JEXL couldn't find bar() or what exactly the problem was.

      Obviously this is is a low priority bug that is in no way blocking anything. But it sure would be helpful if it could be improved one day.

      Attachments

        Activity

          People

            henrib Henri Biestro
            garretwilson Garret Wilson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: