Re: [java-gnome-hackers] Should Pixbuf constructor propegate unchecked excpetion for unknown format
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2008-06-16 12:31:59
|
On Mon, 2008-06-16 at 10:01 +0000, Vreixo Formoso Lopes wrote: > However, I wonder if somebody may be using Pixbuf for load images > supplied by user, For example, an image viewer or picture catalog > image may use Pixbuf for that. In those case checked is better. Yes, that is the case I am presently encountering. While I agree that images being loaded are under the control of the programmer is a common scenario, loading foreign images would have to be as common if not more so. > Yes, that's a thing I've planned. The error code needs to be exposed, > together with [at least] the most common error codes, as enums. It's not even a matter of "common" so much as it is "encountered". [Also, keep in mind that the Constants need to be registered, but there is nothing that says they need to be public. The typed Exception being thrown takes care of that] AfC Sydney |