@Controller public class BasicErrorController extends Object implements ErrorController
Controller
, rendering ErrorAttributes
. More specific
errors can be handled either using Spring MVC abstractions (e.g.
@ExceptionHandler
) or by adding servlet
container error pages
.ErrorAttributes
Constructor and Description |
---|
BasicErrorController(ErrorAttributes errorAttributes) |
Modifier and Type | Method and Description |
---|---|
|
error(HttpServletRequest request) |
ModelAndView |
errorHtml(HttpServletRequest request) |
String |
getErrorPath()
Returns the path of the error page.
|
public BasicErrorController(ErrorAttributes errorAttributes)
public String getErrorPath()
ErrorController
getErrorPath
in interface ErrorController
public ModelAndView errorHtml(HttpServletRequest request)
publicerror(HttpServletRequest request)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.