You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Greg McFall <gr...@gmail.com> on 2011/06/02 22:43:36 UTC

Custom error handler around one endpoint

Hi,
As best I can tell, there is just one error handler for the entire context.
Is there a way to create a custom error handler that can be applied
around a single endpoint?

~ Greg McFall

Re: Custom error handler around one endpoint

Posted by boday <be...@initekconsulting.com>.
just use route scoped exception handling...see
http://camel.apache.org/exception-clause.html

-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: http://camel.465427.n5.nabble.com/Custom-error-handler-around-one-endpoint-tp4449301p4449367.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Custom error handler around one endpoint

Posted by Alan Camillo <al...@gmail.com>.
The doTry can be used too:
http://camel.apache.org/try-catch-finally.html

Alan Camillo

On Thursday, June 2, 2011, Greg McFall <gr...@gmail.com> wrote:
> Hi,
> As best I can tell, there is just one error handler for the entire context.
> Is there a way to create a custom error handler that can be applied
> around a single endpoint?
>
> ~ Greg McFall
>