You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/12/14 07:15:34 UTC

[GitHub] [camel] TCke83 commented on pull request #6531: CAMEL-17307: camel-support - Added ThrowingPredicate interface to cre…

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org