spring-framework / org.springframework.web.servlet / ModelAndViewDefiningException

ModelAndViewDefiningException

open class ModelAndViewDefiningException : ServletException

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.

Author
Juergen Hoeller

Since
22.11.2003

Constructors

<init>

ModelAndViewDefiningException(modelAndView: ModelAndView)

Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.

Functions

getModelAndView

open fun getModelAndView(): ModelAndView

Return the ModelAndView that this exception contains for forwarding to.