类 ModelAndViewDefiningException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.portlet.PortletException
- org.springframework.web.portlet.ModelAndViewDefiningException
- 所有已实现的接口:
Serializable
public class ModelAndViewDefiningException extends PortletException
Exception to be thrown on error conditions that should forward to a specific view with a specific model.Can be thrown at any time during handler processing. This includes any template methods of pre-built controllers. For example, a form controller might abort to a specific error page if certain parameters do not allow to proceed with the normal workflow.
- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ModelAndViewDefiningException(ModelAndView modelAndView)
Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ModelAndView
getModelAndView()
Return the ModelAndView that this exception contains for forwarding to.
构造器详细资料
ModelAndViewDefiningException
public ModelAndViewDefiningException(ModelAndView modelAndView)
Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.- 参数:
modelAndView
- ModelAndView with view to forward to and model to expose
方法详细资料
getModelAndView
public ModelAndView getModelAndView()
Return the ModelAndView that this exception contains for forwarding to.