Re: [vassalengine-devel] error and exception handling
Brought to you by:
rodneykinney,
uckelman
From: Rodney K. <rod...@co...> - 2006-10-24 19:39:57
|
> There are a few execptions I'm catching which can happen during SVG > parsing. None of them are fatal to the program, but they will prevent > an image from being generated. The problem is that they don't all happen > during module loading. The SVG backing a SVGBufferedImage isn't parsed > until the image is requested, which could be long after he module is > loaded > (or never). What's the expected behavior here? Is there a model someplace > in the code that someone could point me to? DataArchive.getCachedImage() throws IOException if the image can't be found, so I'd follow that convention. All the classes that get images from the archive catch the exception and decide how to handle it. Mostly, they draw nothing and sometimes write to System.err. rk |