Search in sources :

Example 1 with FlowExecutionRestorationFailureException

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;
}
Also used : PageExpiredException(org.mifos.framework.exceptions.PageExpiredException) ModelAndView(org.springframework.web.servlet.ModelAndView) FlowExecutionRestorationFailureException(org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException) AccessDeniedException(org.springframework.security.access.AccessDeniedException) MaxUploadSizeExceededException(org.springframework.web.multipart.MaxUploadSizeExceededException) JNDIException(org.mifos.reports.pentaho.util.JNDIException) PageExpiredException(org.mifos.framework.exceptions.PageExpiredException) RESTCallInterruptException(org.mifos.rest.approval.service.RESTCallInterruptException) FlowExecutionRestorationFailureException(org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException)

Aggregations

PageExpiredException (org.mifos.framework.exceptions.PageExpiredException)1 JNDIException (org.mifos.reports.pentaho.util.JNDIException)1 RESTCallInterruptException (org.mifos.rest.approval.service.RESTCallInterruptException)1 AccessDeniedException (org.springframework.security.access.AccessDeniedException)1 MaxUploadSizeExceededException (org.springframework.web.multipart.MaxUploadSizeExceededException)1 ModelAndView (org.springframework.web.servlet.ModelAndView)1 FlowExecutionRestorationFailureException (org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException)1