站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

ModelAndViewDefiningException (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.web.servlet
Class ModelAndViewDefiningException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.servlet.ServletException
              extended by org.springframework.web.servlet.ModelAndViewDefiningException
All Implemented Interfaces:
Serializable

public class ModelAndViewDefiningException
extends ServletException

Exception to be thrown on error conditions that should forward to a specific view with a specific model. This is an exception with special semantics, since it is intended to cause a forward.

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.

Since:
22.11.2003
Author:
Juergen Hoeller
See Also:
Serialized Form

Constructor Summary
ModelAndViewDefiningException(ModelAndView modelAndView)
          Create a new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.
 
Method Summary
 ModelAndView getModelAndView()
          Return the ModelAndView that this exception contains for forwarding to.
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelAndViewDefiningException

public ModelAndViewDefiningException(ModelAndView modelAndView)
Create a new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.

Parameters:
modelAndView - ModelAndView with view to forward to and model to expose
Method Detail

getModelAndView

public ModelAndView getModelAndView()
Return the ModelAndView that this exception contains for forwarding to.



Copyright (c) 2002-2007 The Spring Framework Project.