cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-3344) Runtime Exceptions should not be wrapped. Exceptions should not be logged and rethrown in AbstractFaultChainInitiatorObserver
Date Wed, 21 Jan 2015 12:30:34 GMT

     [ https://issues.apache.org/jira/browse/CXF-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Schneider resolved CXF-3344.
--------------------------------------
    Resolution: Fixed

Removed the wrapping but keeping the logging as it might not be logged elsewhere

> Runtime Exceptions should not be wrapped. Exceptions should not be logged and rethrown
in AbstractFaultChainInitiatorObserver
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3344
>                 URL: https://issues.apache.org/jira/browse/CXF-3344
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message