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

Reply via email to