@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 |
|---|---|
org.springframework.http.ResponseEntity<Map<String,Object>> |
error(javax.servlet.http.HttpServletRequest request) |
org.springframework.web.servlet.ModelAndView |
errorHtml(javax.servlet.http.HttpServletRequest request) |
String |
getErrorPath()
Returns the path of the error page.
|
public BasicErrorController(ErrorAttributes errorAttributes)
public String getErrorPath()
ErrorControllergetErrorPath in interface ErrorController@RequestMapping(value="${error.path:/error}",
produces="text/html")
public org.springframework.web.servlet.ModelAndView errorHtml(javax.servlet.http.HttpServletRequest request)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.