public abstract class AbstractErrorController extends Object implements ErrorController
Controller
implementations.ErrorAttributes
Constructor and Description |
---|
AbstractErrorController(ErrorAttributes errorAttributes) |
AbstractErrorController(ErrorAttributes errorAttributes,
List<ErrorViewResolver> errorViewResolvers) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getErrorAttributes(HttpServletRequest request,
boolean includeStackTrace) |
protected HttpStatus |
getStatus(HttpServletRequest request) |
protected boolean |
getTraceParameter(HttpServletRequest request) |
protected ModelAndView |
resolveErrorView(HttpServletRequest request,
HttpServletResponse response,
HttpStatus status,
Map<String,Object> model)
Resolve any specific error views.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPath
public AbstractErrorController(ErrorAttributes errorAttributes)
public AbstractErrorController(ErrorAttributes errorAttributes, List<ErrorViewResolver> errorViewResolvers)
protected Map<String,Object> getErrorAttributes(HttpServletRequest request, boolean includeStackTrace)
protected boolean getTraceParameter(HttpServletRequest request)
protected HttpStatus getStatus(HttpServletRequest request)
protected ModelAndView resolveErrorView(HttpServletRequest request, HttpServletResponse response, HttpStatus status, Map<String,Object> model)
ErrorViewResolvers
.request
- the requestresponse
- the responsestatus
- the HTTP statusmodel
- the suggested modelModelAndView
or null
if the default should be
usedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.