Revision 4329130b
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/ui/RegistrationUI.java | ||
---|---|---|
24 | 24 |
import com.vaadin.server.Resource; |
25 | 25 |
import com.vaadin.server.Responsive; |
26 | 26 |
import com.vaadin.server.VaadinRequest; |
27 |
import com.vaadin.server.VaadinSession; |
|
27 | 28 |
import com.vaadin.spring.annotation.SpringUI; |
28 | 29 |
import com.vaadin.spring.navigator.SpringViewProvider; |
29 | 30 |
import com.vaadin.ui.Component; |
... | ... | |
114 | 115 |
@Override |
115 | 116 |
protected void init(VaadinRequest request) { |
116 | 117 |
|
117 |
setErrorHandler(new WindowErrorHandler(this, RegistrationUIDefaults.ERROR_CONTACT_MESSAGE_LINE + "</br></br>"
|
|
118 |
WindowErrorHandler errorHandler = new WindowErrorHandler(this, RegistrationUIDefaults.ERROR_CONTACT_MESSAGE_LINE + "</br></br>"
|
|
118 | 119 |
+ "<i>To help analyzing the problem please describe your actions that lead to this error and provide the error details from below in your email. " |
119 |
+ "You also might want to add a sreenshot of the browser page in error.</i>")); |
|
120 |
+ "You also might want to add a sreenshot of the browser page in error.</i>"); |
|
121 |
setErrorHandler(errorHandler); |
|
122 |
VaadinSession.getCurrent().setErrorHandler(errorHandler); |
|
120 | 123 |
|
121 | 124 |
navigator.setViewDisplay(viewDisplay); |
122 | 125 |
configureAccessDeniedView(); |
Also available in: Unified diff
ref #7870 adding the WindowErrorHandler also to the VaadinSession to also get hold of 'internal errors'