I would look at GWT.setUncaughtExceptionHandler - this will allow you to catch exceptions and show the user an error message if something goes wrong, you were not taken into account in the try / catch block.
Obviously, if there is something that may go wrong as you might expect, it is better to catch it and display the corresponding message, but this works for common errors.
user7094
source share