public class FlowExecutionExceptionResolver
extends java.lang.Object
implements org.springframework.web.servlet.HandlerExceptionResolver
FlowExecutionExceptionResolver catches the FlowExecutionRepositoryException
thrown by Spring Webflow when the given flow id no longer exists. This can
occur if a particular flow has reached an end state (the id is no longer valid)
It will redirect back to the requested URI which should start a new workflow.
| Constructor and Description |
|---|
FlowExecutionExceptionResolver() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception exception)
Since FlowExecutionRepositoryException is a common ancestor to these exceptions and other
error cases we would likely want to hide from the user, it seems reasonable to check for
FlowExecutionRepositoryException.
|
public org.springframework.web.servlet.ModelAndView resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception exception)
resolveException in interface org.springframework.web.servlet.HandlerExceptionResolver