]> source.dussan.org Git - vaadin-framework.git/commitdiff
Newbies can easily do bad code that throws exceptions but those are simply ignored...
authorJani Laakso <jani.laakso@itmill.com>
Thu, 7 Feb 2008 13:16:51 +0000 (13:16 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Thu, 7 Feb 2008 13:16:51 +0000 (13:16 +0000)
svn changeset:3729/svn branch:trunk

src/com/itmill/toolkit/Application.java

index b9ba29e7e412a1551030c45744d4ee7123a27285..2dbca6560edd8ee00b2c69b560abf9a31d854e9e 100644 (file)
@@ -1017,7 +1017,8 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
      * Invoked by the terminal on any exception that occurs in application and
      * is thrown by the <code>setVariable</code> to the terminal. The default
      * implementation sets the exceptions as <code>ComponentErrors</code> to
-     * the component that initiated the exception.
+     * the component that initiated the exception and prints stack trace to
+     * System.err.
      * </p>
      * <p>
      * 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;