I agree with you and that's one of the things that I like in C#. Unfortunately it's too late to change it although in the newer stuff either an IOException is thrown or it's wraped in an ExceptionConverter.
Paulo ----- Original Message ----- From: "Anders Rundgren" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, June 02, 2006 9:27 PM Subject: [iText-questions] Minor DocumentException complaint > P&B > > As a designer of libraries for usage in Java Servlets I have come to the > conclusion > that deriving exceptions from the "Exception" class only leads to > complexities both > for direct usage in Servlets or for embedment in other libraries. > > Due to this I have reverted to deriving "my own" exceptions from > IOException > or RunTimeException. > > This allows interfaces to only declare that they throw IOException but > still enables the user to catch specific exceptions if needed. The latter > seldom or never happens in real life in my experience. > > I would suggest a revision of iText according to this lines since iText > is perfect for Servlet usage and all those try-catchs just becomes > ugly and counterproductive. > > I just found out that I was not alone with this: > > http://www.dehora.net/journal/2003/08/checked_exception_still_considered_pointless.html > > BR > Anders > > > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
