When we first started building Synapse we had a discussion about this and we decided to make SE a runtime exception. The discussion will be buried somewhere in the archives but it was about 2.5 years ago!!!
Paul On Fri, Jun 13, 2008 at 9:00 AM, Afkham Azeez <[EMAIL PROTECTED]> wrote: > I noticed that there are 183 instances in which SynapseException is thrown > and that it is a RuntimeException. What is the design decision behind making > this a RuntimeException rather than a checked one? > > > See > http://java.sun.com/docs/books/tutorial/essential/exceptions/runtime.html > > Here are some relevant snippets from that doc: > > "Runtime exceptions represent problems that are the result of a programming > problem, and as such, the API client code cannot reasonably be expected to > recover from them or to handle them in any way. " > > "If a client can reasonably be expected to recover from an exception, make > it a checked exception. If a client cannot do anything to recover from the > exception, make it an unchecked exception" > > -- > Thanks > Afkham Azeez > > http://afkham.org > http://www.wso2.org > GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760 -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
