use of org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException in project head by mifos.
the class UncaughtExceptionHandler method checkForPageExpiredException.
private ModelAndView checkForPageExpiredException(Exception ex, HttpServletRequest request) {
if (ex instanceof PageExpiredException || ex instanceof FlowExecutionRestorationFailureException) {
ModelAndView modelAndView = null;
String viewName = determineViewName(ex, request);
if (viewName != null) {
modelAndView = getModelAndView(viewName, ex, request);
}
return modelAndView;
}
if (ex.getCause() != null && ex.getCause() instanceof Exception) {
return checkForPageExpiredException((Exception) ex.getCause(), request);
}
return null;
}
Aggregations