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

Around-Invoke interceptors should not wrap RuntimeException into WeldException

    XMLWordPrintable

Details

    Description

      Currently, org.jboss.weld.bean.InterceptorImpl always throws a WeldException when the invoked method throws an exception.

      This causes all exceptions in intercepted session bean methods to be treated as system exceptions by the EJB subsystem as WeldException is a system exception.

      If RuntimeExceptions were simply rethrown, such exceptions (annotated with javax.ejb.ApplicationException) could pass through the interceptor unwrapped and be recognized as application exception in the EJB sense.

      Of course, checked application exceptions are a bigger problem that would probably require a more sofisticated solution, that could be resolved later.

      Attachments

        Activity

          People

            marko.luksa@gmail.com Marko Luksa (Inactive)
            st_patriick Vlastimil Menčík (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: