Re: OnException block to figured out where the Exception is originated from

2019-08-29 Thread Wang Yan
Omar Al-Safi Thank you for the clarification. it works as you suggested! On Wed, Aug 28, 2019 at 11:31 AM Omar Al-Safi [via Camel] < ml+s465427n5841999...@n5.nabble.com> wrote: > If I understood you correctly, you want to know from where this Exchange > which holds the exception, have you tried

Re: OnException block to figured out where the Exception is originated from

2019-08-28 Thread Omar Al-Safi
If I understood you correctly, you want to know from where this Exchange which holds the exception, have you tried something like `exchange.getFromEndpoint` or `exchange.getFromRouteId`? Which as I understood should gives from which endpoint this exchange has been originated from. However, I think

OnException block to figured out where the Exception is originated from

2019-08-27 Thread Wang Yan
Hello all, OnException block , the TechnicalException will be caught, this exception could come from Route A or Route B , my question is , Is it possible for on Exception block to figure out where the TechnicalException is originated from ? for example from which Route or from which Endpoint?