Revision 42d326df
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionTableViewBean.java | ||
---|---|---|
16 | 16 |
import java.util.UUID; |
17 | 17 |
|
18 | 18 |
import org.springframework.beans.factory.annotation.Autowired; |
19 |
import org.springframework.orm.hibernate5.HibernateSystemException; |
|
20 | 19 |
import org.springframework.security.core.GrantedAuthority; |
21 | 20 |
import org.vaadin.addons.lazyquerycontainer.LazyQueryContainer; |
22 | 21 |
|
... | ... | |
175 | 174 |
//popup window |
176 | 175 |
final Window popup = new Window(Messages.getLocalizedString(Messages.DistributionTableViewBean_CHOOSE_DISTRIBUTION_STATUS)); |
177 | 176 |
DelegatingErrorHandler errorHandler = new DelegatingErrorHandler(); |
178 |
errorHandler.registerHandler(HibernateSystemException.class, new HibernateSystemErrorHandler());
|
|
177 |
errorHandler.registerHandler(new HibernateSystemErrorHandler()); |
|
179 | 178 |
popup.setErrorHandler(errorHandler); |
180 | 179 |
final ListSelect termSelect = new ListSelect(); |
181 | 180 |
termSelect.setSizeFull(); |
Also available in: Unified diff
ref #7241 DelegatingErrorHandler more generically