public class LemonErrorController
extends org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController
DefaultExceptionHandlerControllerAdvice
,
e.g. exceptions thrown in filters.Constructor and Description |
---|
LemonErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes,
org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
java.util.List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<java.util.Map<java.lang.String,java.lang.Object>> |
error(javax.servlet.http.HttpServletRequest request)
Overrides the base method to add our custom logic
|
errorHtml, getErrorPath, getErrorProperties, isIncludeStackTrace
public LemonErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, java.util.List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers)
public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String,java.lang.Object>> error(javax.servlet.http.HttpServletRequest request)
error
in class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController