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-18 12:13:01
|
On Tue, 2008-06-17 at 13:39 +0000, Vreixo Formoso Lopes wrote: > > That would be overkill. > > No really... we only need to expose exceptions we really need. As a > future task, we can even modify the codegen and .defs data to report > (as a throws WhateverException) the exceptions a concrete method can > throw... Don't do that. You'd have to do add FindClass() on the JNI side for each Exception you'd created. And further, if it's "file not found" then the right Exception will be FileNotFoundException. Etc. Keep it on the Java side. AfC Sydney |