Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3344

Runtime Exceptions should not be wrapped. Exceptions should not be logged and rethrown in AbstractFaultChainInitiatorObserver

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: Core
    • Labels:
      None

      Description

      Currently the class org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver handles faults and sends them to a chain.
      If in this chain another exception occurs then three things happen.

      1) The exception is Wrapped in a RuntimeException
      2) The exception is logged
      3) The exception is rethrown

      I propose to do the following instead :

      1) Only Wrap the exception if it is no RuntimeException
      2) Simply Rethrow and do not log as probably the Exception in caught and logged in another place anyway

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: