public interface ErrorAttributes
DefaultErrorAttributes
Modifier and Type | Method and Description |
---|---|
Throwable |
getError(RequestAttributes requestAttributes)
Return the underlying cause of the error or
null if the error cannot be
extracted. |
Map<String,Object> |
getErrorAttributes(RequestAttributes requestAttributes,
boolean includeStackTrace)
Returns a
Map of the error attributes. |
Map<String,Object> getErrorAttributes(RequestAttributes requestAttributes, boolean includeStackTrace)
Map
of the error attributes. The map can be used as the model of
an error page ModelAndView
, or returned as a ResponseBody
.requestAttributes
- the source request attributesincludeStackTrace
- if stack trace elements should be includedCopyright © 2014 Pivotal Software, Inc.. All rights reserved.