@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 |
---|---|
Map<String,Object> |
error(HttpServletRequest request) |
ModelAndView |
errorHtml(HttpServletRequest request) |
Map<String,Object> |
extract(RequestAttributes attributes,
boolean trace)
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)
public Map<String,Object> extract(RequestAttributes attributes, boolean trace)
ErrorController
extract
in interface ErrorController
attributes
- the request attributestrace
- flag to indicate that stack trace information should be includedCopyright © 2014. All rights reserved.