Re: JDOM2 and Runtime Exceptions
Grzegorz <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <CA+DoOifkS=wKJgGZ5Yq2rJ5C9ypyG32SHv+XsWyXMpmrVBL_VA@mail.gmail.com> |
> > > I'm one of those who believes that the discipline and extra effort caused > by having to think about exceptions makes for better engineered and more > robust programs. I hate C# from this perspective; you never know whether > you have tested the exception handling code in your application adequately. > Similarly StAX is a mess from the exception handling point of view - Sax, > where every method can throw SAXException, is much easier to work with. Such code is certainly easier to read and understand; but not necessarily easier to maintain and refactor when you want to have a loosely coupled system... I would opt for runtime exceptions. I prefer not to think about internals of underlying implementation if not needed. Less dependencies is less problems for me. If I do really need to handle some exceptional situation I may as well catch a runtime exception. Regards, Grzegorz _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]