aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-02-07 11:52:43 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-02-07 11:52:43 +0000
commitc242ff0cdeb410087a306231bf75ad2ce1e574fd (patch)
treedc20a8e7ca220a664ccb6ee8a4a1fc87acc30d43 /src
parenta1ad5a83ceab31d05e582cfefa5a4a163ad246c7 (diff)
downloadvaadin-framework-c242ff0cdeb410087a306231bf75ad2ce1e574fd.tar.gz
vaadin-framework-c242ff0cdeb410087a306231bf75ad2ce1e574fd.zip
Better documentation for terminalError
svn changeset:513/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/Application.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/Application.java b/src/com/itmill/toolkit/Application.java
index bb069fb9b8..513a0ca3eb 100644
--- a/src/com/itmill/toolkit/Application.java
+++ b/src/com/itmill/toolkit/Application.java
@@ -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) {