luigidemasi commented on PR #26684: URL: https://github.com/apache/camel/pull/26684#issuecomment-5763525242
@gnodet-bot Regarding the uncertainty exception in [this review](https://github.com/apache/camel/pull/26684#pullrequestreview-5267653532): I checked this against Camel's error-handler implementation and exercised the exact `onException(JevUncertainResultException.class).handled(true)` pattern. Camel's [DefaultExceptionPolicyStrategy traverses the exception cause chain](https://github.com/apache/camel/blob/74f145e83ea7654b3dadedd22d222ac27b1025b4/core/camel-core-processor/src/main/java/org/apache/camel/processor/errorhandler/DefaultExceptionPolicyStrategy.java#L72-L87). The wrapper therefore does not prevent the named `onException` policy from matching. A local Java 17 runtime probe confirmed that an uncertain result reaches the handler from all three of `filter`, `choice().when`, and `validate`, without catching `RuntimeCamelException` or inspecting its cause in application code. I have kept the exception hierarchy unchanged because the reported routing failure does not occur. The documentation already states that the uncertainty exception is available through Camel's cause chain. _AI-generated by OpenAI Codex on behalf of @luigidemasi via /oss-address-review._ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
