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

Allow Expressions to throw exceptions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1-beta-1
    • Fix Version/s: None
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      Per a recent email from Paul Libbrecht, we should allow expressions to throw an exception. Currently, the Expression interface doesn't throw exceptions.

      Issues:

      • currently, the script evaluation isn't terminated because of an expression exception. should it be? by default, I mean. could this be another flag in the environment?
      • should the tag itself be given a way to intercept exceptions from Expressions? Expressions are evaluated before the tag is run, so it normally wouldn't know anything about them.

      Email from Paul Libbrecht [paul@dfki.de]:
      ~~~~~~~~~~~~~~~~~~~~~~~~
      Hi,

      One of the most frustrating place in jelly, to my taste, is when a jexl exception occurs... Jelly complains (at least with good logging
      settings) but does not throw. Moreover, this complaint doesn't have a jelly line-number which makes it somewhat hard.

      Is there really any wish that such an exception is not thrown ?

      thanks

      paul
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hgilde Hans Gilde
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: