Was logging warnings for any message bundle that didn't use a custom

class. Fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4271 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-07-18 02:21:25 +00:00
parent ce3d3474f9
commit f118e213d2
+10 -7
View File
@@ -126,14 +126,17 @@ public class MessageManager
try {
mbclass = rbundle.getString(MBUNDLE_CLASS_KEY);
if (!StringUtil.isBlank(mbclass)) {
var clazz :Class = ClassUtil.getClassByName(mbclass);
bundle = new clazz();
try {
var clazz :Class = ClassUtil.getClassByName(mbclass);
bundle = new clazz();
} catch (ee :Error) {
Log.getLog(this).warning(
"Failure instantiating custom message bundle " +
"[mbclass=" + mbclass + ", error=" + ee + "].");
}
}
} catch (t :Error) {
Log.getLog(this).warning(
"Failure instantiating custom message bundle " +
"[mbclass=" + mbclass + ", error=" + t + "].");
} catch (eee :Error) {
// nada
}
}