Don't print stack trace when we lose the remote OOPHM connection.
Patch by: jat
Review by: jlabanca
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6415 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java b/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java
index 4e01973..94de64f 100644
--- a/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java
+++ b/dev/core/src/com/google/gwt/dev/shell/BrowserChannelServer.java
@@ -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);
}
}