List of usage examples for org.springframework.dao PessimisticLockingFailureException getMessage
@Override
@Nullable
public String getMessage()
From source file:org.terasoluna.gfw.functionaltest.app.exceptionhandling.ExceptionHandlingController.java
@ExceptionHandler(PessimisticLockingFailureException.class) @ResponseStatus(HttpStatus.CONFLICT)// w w w. j av a 2 s. co m public ModelAndView handleException(PessimisticLockingFailureException e) { ExtendedModelMap modelMap = new ExtendedModelMap(); modelMap.addAttribute("exceptionMessage", e.getMessage()); return new ModelAndView("exceptionhandling/exceptionHandler", modelMap); }