Ticket #1642 (closed enhancement: fixed)
CommunicationManager exceptions should throw also TerminalError
| Reported by: | Jani Laakso | Owned by: | Marko Gronroos |
|---|---|---|---|
| Priority: | undefined | Milestone: | User Interface Library 5.3.0 RC |
| Component: | gwt-adapter-server | Version: | |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
Rationality is that Application developer should be able to catch any exceptions occuring in Toolkit core classes. Currently there exists situations (at least in CommunicationManager?) where exceptions are thrown by Toolkit but there is no way for application developer to see and let alone react to them in any way.
Currently application developer may catch "some Toolkit" errors like this:
/**
* Example how to catch terminal errors and change default behaviour of
* error reporting.
*/
@Override
public void terminalError(Terminal.ErrorEvent event) {
// Print errors always to standard errors streams too
System.err.println("Terminal error:");
event.getThrowable().printStackTrace();
// And let them fall to GUI too (default)
super.terminalError(event);
}
Change History
Note: See
TracTickets for help on using
tickets.
