You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/03/28 09:01:19 UTC
[jira] [Commented] (CAMEL-6221) Camel Scala DSL should support to
handle more than one Exceptions
[ https://issues.apache.org/jira/browse/CAMEL-6221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13616125#comment-13616125 ]
Willem Jiang commented on CAMEL-6221:
-------------------------------------
After digging the code for a while, I found it is impossible to set the multiple exceptions into handle method, as it use implicit manifest parameter to pass the Class related information.
Here is a workaround by calling the onException method directly in the scala code like this
{code}
builder.onException(Class[MyFunctionalException], Class[MyTechnicalException]).to("mock:error").handled(true)
{code}
> Camel Scala DSL should support to handle more than one Exceptions
> -----------------------------------------------------------------
>
> Key: CAMEL-6221
> URL: https://issues.apache.org/jira/browse/CAMEL-6221
> Project: Camel
> Issue Type: Improvement
> Components: camel-scala
> Reporter: Willem Jiang
>
> Current camel-scala handle doesn't support to take the exception classes.
> http://camel.465427.n5.nabble.com/Handle-multiple-exceptions-in-scala-dsl-tp5729941.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira