Need to catch Throwable rather than Exception because apparently

ClassNotFoundException is a runtime exception.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@765 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-13 05:15:16 +00:00
parent 279b3b07c0
commit 18b32fff62
@@ -1,5 +1,5 @@
//
// $Id: ImageManager.java,v 1.10 2001/12/13 01:14:30 shaper Exp $
// $Id: ImageManager.java,v 1.11 2001/12/13 05:15:16 mdb Exp $
package com.threerings.media;
@@ -53,9 +53,9 @@ public class ImageManager
// try to figure out which image loader we'll be using
try {
_loader = (ImageLoader)Class.forName(IMAGEIO_LOADER).newInstance();
} catch (Exception e) {
} catch (Throwable t) {
Log.info("Unable to use ImageIO to load images. " +
"Falling back to Toolkit [e=" + e + "].");
"Falling back to Toolkit [error=" + t + "].");
_loader = new ToolkitLoader(context);
}
}