Catch and log runtime exceptions when finishing a move-to request and

inform the client that the shit hit the fan so that it's not locked from
making any other move requests.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3703 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-09-16 00:36:21 +00:00
parent f75d7d6f31
commit 7f34a9cfaf
2 changed files with 10 additions and 1 deletions
@@ -1,5 +1,5 @@
//
// $Id: SceneProvider.java,v 1.20 2004/08/27 02:20:43 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -101,8 +101,13 @@ public class SceneProvider
{
try {
effectSceneMove(source, scmgr, sceneVersion, listener);
} catch (InvocationException sfe) {
listener.requestFailed(sfe.getMessage());
} catch (RuntimeException re) {
Log.logStackTrace(re);
listener.requestFailed(INTERNAL_ERROR);
}
}
@@ -225,6 +225,10 @@ public class ZoneProvider
} catch (InvocationException ie) {
listener.requestFailed(ie.getMessage());
} catch (RuntimeException re) {
Log.logStackTrace(re);
listener.requestFailed(INTERNAL_ERROR);
}
}