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.
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
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
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)
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
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
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
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
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