I have a route where I perform some XSD validation first, and after
that a HTTP download. The XSD validation is "optional", meaning that
failure is simply logged but should not block the rest of the flow,
while HTTP download exceptions should abort.

I have defined two separate "onException" blocks, one for the
"ValidationException" with "continued" enabled, and another for the
"HttpOperationFailedException". They both seem to work fine
independently, but for some reason, capturing both exceptions is not
possible.

Initially, I assumed that after the "silent" handling of
ValidationException, the second exception (HTTP)  handler would kick
in, but it's never called. Is this because only 1 "onException"
handler can be called per route?

Wrapping the first XSD check into a explicit doTry/doCatch does work
like I expected ..

Someone some suggestion how to implement this best?

Many thanks!

Tung

Reply via email to