From 41f8ffbb8b7b11e741f01938a9b22ed7acf810a7 Mon Sep 17 00:00:00 2001
From: Jani Laakso setVariable
to the terminal. The default
* implementation sets the exceptions as ComponentErrors
to
- * the component that initiated the exception.
+ * the component that initiated the exception and prints stack trace to
+ * System.err.
*
* You can safely override this method in your application in order to @@ -1029,6 +1030,8 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener * @see com.itmill.toolkit.terminal.Terminal.ErrorListener#terminalError(com.itmill.toolkit.terminal.Terminal.ErrorEvent) */ public void terminalError(Terminal.ErrorEvent event) { + // throw it to System.err too + event.getThrowable().printStackTrace(); // Finds the original source of the error/exception Object owner = null; -- cgit v1.2.3