Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2710

Lite Extension Translator exceptions don't preserve cause

    XMLWordPrintable

Details

      1. Create a build compatible extension
      2. Throw an exception from one of the methods
      3. Look at the resulting message and stack trace

    Description

      Exceptions generated by LiteExtensionTranslatorLogger  do not include a cause.

      This is particularly a problem if the user's method threw an exception as that exception will not appear in the stack trace.

      I also note that unableToInvokeExtensionMethod is passed the .toString of the exception. However, the exception will usually be a java.lang.reflect.InvocationTargetException which has a cause but contains no useful information in its message.

      Attachments

        Activity

          People

            Unassigned Unassigned
            azquelt Andrew Rouse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: