public interface ErrorAttributes
DefaultErrorAttributes| Modifier and Type | Method and Description | 
|---|---|
| Throwable | getError(org.springframework.web.context.request.WebRequest webRequest)Return the underlying cause of the error or  nullif the error cannot be
 extracted. | 
| Map<String,Object> | getErrorAttributes(org.springframework.web.context.request.WebRequest webRequest,
                  boolean includeStackTrace)Returns a  Mapof the error attributes. | 
Map<String,Object> getErrorAttributes(org.springframework.web.context.request.WebRequest webRequest, 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.webRequest - the source requestincludeStackTrace - if stack trace elements should be includedCopyright © 2020 Pivotal Software, Inc.. All rights reserved.