Apache Camel | Custom Error Handler to control behavior per Exception.

2014-05-06 Thread manchandap
the solution that I want. -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Custom-Error-Handler-to-control-behavior-per-Exception-tp5750913.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Custom error handler for logging + dlq + riemann

2013-07-10 Thread Frazer Irving
Fantastic, thank you On 10/07/2013 17:13, "Bilgin Ibryam" wrote: >Hi Frazer, > >you can get access the exception from the exchange property: >Exchange.EXCEPTION_CAUGHT > >HTH >Bilgin > >On 10 July 2013 11:53, Frazer Irving >wrote: > >> Hi, >> >> I'm trying to create an error handler that sends

Re: Custom error handler for logging + dlq + riemann

2013-07-10 Thread Bilgin Ibryam
Hi Frazer, you can get access the exception from the exchange property: Exchange.EXCEPTION_CAUGHT HTH Bilgin On 10 July 2013 11:53, Frazer Irving wrote: > Hi, > > I'm trying to create an error handler that sends messages to a DLQ, sends > events to riemann and logs the error with a stack trace

Custom error handler for logging + dlq + riemann

2013-07-10 Thread Frazer Irving
Hi, I'm trying to create an error handler that sends messages to a DLQ, sends events to riemann and logs the error with a stack trace. I have done something like the following. public RiemannSendProcessor extends SendProcessor { public void process (Exchange exchange, AsyncCallback callback)

Re: custom error handler

2012-04-10 Thread Claus Ibsen
thod handleException > is never > being called > this is the code of my exceptionHandler Bean > > class ExceptionHandler { > >    private static final Log LOGGER = > LogFactory.getLog(ExceptionHandler.class); > >    public void handleException(Object exception) { >        LO

custom error handler

2012-04-09 Thread Marco Mistroni
ass); public void handleException(Object exception) { LOGGER.info("Handling exceptions:" + exception); } } what am i missing? or are there any better approaches to configure a custom error handler ? I am not interested in propagating the exception (as exceptions will happen only at endpoints) w/kindest regards marco

Re: Custom error handler around one endpoint

2011-06-03 Thread Alan Camillo
The doTry can be used too: http://camel.apache.org/try-catch-finally.html Alan Camillo On Thursday, June 2, 2011, Greg McFall 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

Re: Custom error handler around one endpoint

2011-06-02 Thread boday
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

Custom error handler around one endpoint

2011-06-02 Thread Greg McFall
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