From: Joonas Lehtinen Date: Wed, 7 Feb 2007 11:52:43 +0000 (+0000) Subject: Better documentation for terminalError X-Git-Tag: 6.7.0.beta1~6670 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c242ff0cdeb410087a306231bf75ad2ce1e574fd;p=vaadin-framework.git Better documentation for terminalError svn changeset:513/svn branch:toolkit --- 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) {