]> source.dussan.org Git - vaadin-framework.git/commitdiff
Better documentation for terminalError
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 7 Feb 2007 11:52:43 +0000 (11:52 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 7 Feb 2007 11:52:43 +0000 (11:52 +0000)
svn changeset:513/svn branch:toolkit

src/com/itmill/toolkit/Application.java

index bb069fb9b8e26477928bdf6cc4fc0cb449191b24..513a0ca3eb0e3d4691335b0956c2c71820b3f779 100644 (file)
@@ -793,7 +793,12 @@ public abstract class Application implements URIHandler, Terminal.ErrorListener
                this.logoutURL = logoutURL;
        }
 
-       /**
+       /** This method is invoked by the terminal on any exception that occurs in application 
+        * and is thrown by the setVariable() to the terminal. The default implementation sets
+        * the exceptions as ComponentErrors to the component that initiated the exception. 
+        * You can safely override this method in your application in order to direct the errors
+        * to some other destination (for example log).
+        * 
         * @see com.itmill.toolkit.terminal.Terminal.ErrorListener#terminalError(com.itmill.toolkit.terminal.Terminal.ErrorEvent)
         */
        public void terminalError(Terminal.ErrorEvent event) {