}
public void error(Throwable e) {
- GWT.log(e.getMessage(), e);
+ // Borrow exception handling from VDebugConsole
+ VDebugConsole.handleError(e, this);
}
public void setQuietMode(boolean quietDebugMode) {
}
public void error(Throwable e) {
+ handleError(e, this);
+ }
+
+ static void handleError(Throwable e, Console target) {
if (e instanceof UmbrellaException) {
UmbrellaException ue = (UmbrellaException) e;
for (Throwable t : ue.getCauses()) {
- error(t);
+ target.error(t);
}
return;
}
if (message != null && message.length() != 0) {
exceptionText += ": " + e.getMessage();
}
- error(exceptionText);
+ target.error(exceptionText);
GWT.log(e.getMessage(), e);
if (!GWT.isProdMode()) {
e.printStackTrace();