On Fri, Oct 10, 2008 at 1:00 AM, Robert Hanson <[EMAIL PROTECTED]> wrote:

> However, if a file is missing, then the server is going to send a "no file
> found" message that is going to cause a Jmol crash.
>

Not good.
Since we have the list of languages in GT, we could try to get the file only
if we know the language.
That will remove some unecessary calls to the server.



> That's a real problem, because that code is:
>
>     try {
>       bundleClass = Class.forName(name_lang);
>     } catch (Exception e) {
>       Logger.error("GT could not find the class " + name_lang);
>     }
>
>
> so why is this error not just being trapped? Is there something about
> Class.forName() that doesn't allow proper exception handling? Can we use
> ClassLoader directly to try to check for a class?
>

ClassFormatError is not an Exception, but an Error. We should catch
Throwable instead of Exception, that would do the trick.

Nico
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to