- add missing stack traces for some error display situations

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7366 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 0c3652d1d6
commit 04859ce598
  1. 4
      sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java
  2. 3
      sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java

@ -130,9 +130,11 @@ public class SceneApplication extends Application implements LookupProvider, Loo
} catch (Exception e) {
getProgressHandle().finish();
SceneViewerTopComponent.showOpenGLError(e.toString());
Exceptions.printStackTrace(e);
} catch (Error e) {
getProgressHandle().finish();
SceneViewerTopComponent.showOpenGLError(e.toString());
Exceptions.printStackTrace(e);
}
}
@ -198,9 +200,11 @@ public class SceneApplication extends Application implements LookupProvider, Loo
started = true;
} catch (Exception e) {
getProgressHandle().finish();
Exceptions.printStackTrace(e);
SceneViewerTopComponent.showOpenGLError(e.toString());
} catch (Error e) {
getProgressHandle().finish();
Exceptions.printStackTrace(e);
SceneViewerTopComponent.showOpenGLError(e.toString());
}
}

@ -44,6 +44,7 @@ import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.NotifyDescriptor.Message;
import org.openide.awt.UndoRedo;
import org.openide.util.Exceptions;
import org.openide.util.HelpCtx;
import org.openide.util.Lookup;
@ -73,8 +74,10 @@ public final class SceneViewerTopComponent extends TopComponent {
oglCanvas = ((JmeCanvasContext) app.getContext()).getCanvas();
oGLPanel.add(oglCanvas);
} catch (Exception e) {
Exceptions.printStackTrace(e);
showOpenGLError(e.toString());
} catch (Error err) {
Exceptions.printStackTrace(err);
showOpenGLError(err.toString());
}
}

Loading…
Cancel
Save