If PdfGraphics2D.drawImage() catches an Exception, it throws an IllegalArgumentException (presumably to avoid declaring exceptions) with no message or information.
A common cause for an exception here is an IOException when writing the output stream to an http response. Unfortunately, there is no way for the caller to distinguish this common (and uninteresting) situation from some other "real" problem. A simple solution would be to use ExceptionConverter (passing in the original exception) to "convert" the checked exception into an unchecked exception. The caller would be able to look at the underlying exception and see its type. This is a quick and easy change. The only problem that I can see is a backwards compatibility issue, if someone is looking for the IllegalArgumentException. I'm new to iText and to this group. Is this the appropriate way to request a change? Thanks... -- jeff -- View this message in context: http://www.nabble.com/drawImage-generated-wrong-exception-if-network-connection-is-lost-tp16748385p16748385.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
