camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonin Stefanutti <>
Subject Camel 3.0 ideas: Remove throws Exception from API signatures and use unchecked exceptions
Date Wed, 26 Oct 2016 16:47:14 GMT

Would you think that makes sense to remove the 'throws Exception' from a number of Camel API
signatures as well as using unchecked exceptions instead?

While this may be a matter of opinion still debated, there are a couple resources that gives
some guidelines on the topic and that may help answering that question:

- "How to Design a Good API and Why it Matters" presentation and "Effective Java" from Joshua

I raise the question as I've encountered yet another case where checked exceptions fail to
deliver on their promises, that is with functional interfaces (stream, lambda, ...) introduced
in Java 8. There is a lot of resources out there describing the problem in details:


Hence the question. WDYT?

View raw message