Revision: 6415
Author: j...@google.com
Date: Sun Oct 18 11:59:29 2009
Log: Don't print stack trace when we lose the remote OOPHM connection.

Patch by: jat
Review by: jlabanca

http://code.google.com/p/google-web-toolkit/source/detail?r=6415

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java      
 
Sun Oct 18 11:49:24 2009
+++ /trunk/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java      
 
Sun Oct 18 11:59:29 2009
@@ -171,13 +171,9 @@
              returnValue.getValue().toString());
        }
      } catch (IOException e) {
-      // TODO(jat): error handling?
-      e.printStackTrace();
-      throw new HostedModeException("I/O error communicating with client");
+      throw new RemoteDeathError(e);
      } catch (BrowserChannelException e) {
-      // TODO(jat): error handling?
-      e.printStackTrace();
-      throw new HostedModeException("I/O error communicating with client");
+      throw new RemoteDeathError(e);
      }
    }

@@ -187,9 +183,7 @@
        jsniMessage.send();
        // we do not wait for a return value
      } catch (IOException e) {
-      // TODO(jat): error handling?
-      e.printStackTrace();
-      throw new HostedModeException("I/O error communicating with client");
+      throw new RemoteDeathError(e);
      }
    }


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to