Handling uncaught exceptions

Currently in Vaadin 7.0.0+ you must use
VaadinSession.getCurrent().setErrorHandler
:

	VaadinSession.getCurrent().setErrorHandler(new ErrorHandler() {

	    @Override
	    public void error(ErrorEvent event) {
		// ...
	    }

	});