@Controller public class BasicErrorController extends Object implements ErrorController
Controller
, rendering servlet container error codes and
messages where available. More specific errors can be handled either using Spring MVC
abstractions (e.g. @ExceptionHandler
) or by adding servlet
container
error pages
.Constructor and Description |
---|
BasicErrorController() |
Modifier and Type | Method and Description |
---|---|
|
error(HttpServletRequest request) |
ModelAndView |
errorHtml(HttpServletRequest request) |
Map<String,Object> |
extract(RequestAttributes attributes,
boolean trace,
boolean log)
Extract a useful model of the error from the request attributes.
|
String |
getErrorPath()
Returns the path of the error page.
|
public String getErrorPath()
ErrorController
getErrorPath
in interface ErrorController
public ModelAndView errorHtml(HttpServletRequest request)
publicerror(HttpServletRequest request)
public Map<String,Object> extract(RequestAttributes attributes, boolean trace, boolean log)
ErrorController
extract
in interface ErrorController
attributes
- the request attributestrace
- flag to indicate that stack trace information should be includedlog
- flag to indicate that an error should be loggedCopyright © 2014 Pivotal Software, Inc.. All rights reserved.