TCke83 commented on pull request #6531:
URL: https://github.com/apache/camel/pull/6531#issuecomment-993226910


   What also could be a possible approach is to refactor the 
PredicateValidationException into a factory, it gets the predicate as an 
argument. That factory checks on a seperate interface of the supplied 
predicate, not extending from Predicate, e.g. HasCustomException or something 
like that. And if it implements the interface throw that exception, otherwise 
throw the default PredicateValidationException


-- 
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]


Reply via email to