From 862ff8a9eb0a68b02feac8ac8ec4f2082ea8cff1 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 24 May 2005 17:55:52 +0000 Subject: [PATCH] Catch Throwable because LWJGL kindly throws errors during initialization in addition to exceptions. Yay! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3574 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/jme/JmeApp.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/jme/JmeApp.java b/src/java/com/threerings/jme/JmeApp.java index 3cd9a6c2c..bc4d2fd19 100644 --- a/src/java/com/threerings/jme/JmeApp.java +++ b/src/java/com/threerings/jme/JmeApp.java @@ -136,8 +136,8 @@ public class JmeApp return true; - } catch (Exception e) { - reportInitFailure(e); + } catch (Throwable t) { + reportInitFailure(t); return false; } } @@ -342,9 +342,9 @@ public class JmeApp * Called when initialization fails to give the application a chance * to report the failure to the user. */ - protected void reportInitFailure (Exception e) + protected void reportInitFailure (Throwable t) { - Log.logStackTrace(e); + Log.logStackTrace(t); } /**