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.
| Modifier and Type | Field and Description |
|---|---|
| private final ModelAndView |
| Access | Constructor and Description |
|---|---|
| public | ModelAndViewDefiningException(ModelAndView
the ModelAndView with view to forward to and model to expose modelAndView)Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page. |
| Modifier and Type | Method and Description |
|---|---|
| public ModelAndView |
| modelAndView | back to summary |
|---|---|
| private final ModelAndView modelAndView | |
| ModelAndViewDefiningException | back to summary |
|---|---|
| public ModelAndViewDefiningException(ModelAndView modelAndView) Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.
| |
| getModelAndView | back to summary |
|---|---|
| public ModelAndView getModelAndView() Return the ModelAndView that this exception contains for forwarding to. | |