[ 
https://issues.apache.org/activemq/browse/CAMEL-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45629#action_45629
 ] 

Claus Ibsen commented on CAMEL-885:
-----------------------------------

All the methods doesn't have any exceptions declared to be thrown. I suggest to 
wrap the exception as a RuntimeCamelException with the caused exception.
Otherwise we need to add throws Exception to all methods.

We could check if the exception already is a runtime exception and throw it as 
is. Then *only* wrap the checked.

Any thoughts?

> DefaultProducerTemplate.extractResultBody() should throw an exception if 
> there was a failure rather than returning the input message
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-885
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-885
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: James Strachan
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> we should throw an exception if there was a Fault or the exchange contains an 
> Exception

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to