@Order(value=-2147483648) public class DefaultErrorAttributes extends Object implements ErrorAttributes, org.springframework.web.servlet.HandlerExceptionResolver, org.springframework.core.Ordered
ErrorAttributes. Provides the following attributes
when possible:
ObjectErrors from a BindingResult exception
ErrorAttributes| Constructor and Description |
|---|
DefaultErrorAttributes() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getError(org.springframework.web.context.request.RequestAttributes requestAttributes)
Return the underlying cause of the error or
null if the error cannot be
extracted. |
Map<String,Object> |
getErrorAttributes(org.springframework.web.context.request.RequestAttributes requestAttributes,
boolean includeStackTrace)
Returns a
Map of the error attributes. |
int |
getOrder() |
org.springframework.web.servlet.ModelAndView |
resolveException(HttpServletRequest request,
HttpServletResponse response,
Object handler,
Exception ex) |
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic org.springframework.web.servlet.ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
resolveException in interface org.springframework.web.servlet.HandlerExceptionResolverpublic Map<String,Object> getErrorAttributes(org.springframework.web.context.request.RequestAttributes requestAttributes, boolean includeStackTrace)
ErrorAttributesMap of the error attributes. The map can be used as the model of
an error page ModelAndView, or returned as a ResponseBody.getErrorAttributes in interface ErrorAttributesrequestAttributes - the source request attributesincludeStackTrace - if stack trace elements should be includedpublic Throwable getError(org.springframework.web.context.request.RequestAttributes requestAttributes)
ErrorAttributesnull if the error cannot be
extracted.getError in interface ErrorAttributesrequestAttributes - the source request attributesException that caused the error or nullCopyright © 2017 Pivotal Software, Inc.. All rights reserved.