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


   I think a factory is a good idea, but then you can implement a custom 
factory where you can build your custom exceptions based on the predicate. I do 
not think we should/need to add some `HasCustomException` interface but just 
rely on the predicate instance where you can check yourself what you want to 
do, in your custom factory.
   
   Then this is non invasive on the camel-core.


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