@ConfigurationProperties(prefix="error")
public class DefaultErrorAttributesCustom
extends org.springframework.boot.autoconfigure.web.DefaultErrorAttributes
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERROR |
static String |
DEFAULT_ERROR_DESCRIPTION |
static String |
DEFAULT_ERROR_EXCEPTION |
static String |
DEFAULT_ERROR_MESSAGE |
static String |
DEFAULT_ERROR_STATUS |
static String |
DEFAULT_ERROR_THROWABLE |
static String |
DEFAULT_ERROR_TIMESTAMP |
static String |
DEFAULT_ERROR_TRACE |
static String |
DEFAULT_ERROR_URI |
static String |
DEFAULT_ERRORS |
static String |
DEFAULT_ERRORS_COUNT |
static String |
LINE_SEPARATOR |
protected org.apache.commons.logging.Log |
logger |
static Pattern |
PATTERN |
| Constructor and Description |
|---|
DefaultErrorAttributesCustom(org.springframework.context.MessageSource messageSource) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getError(org.springframework.web.context.request.RequestAttributes requestAttributes) |
Map<String,Object> |
getErrorAttributes(org.springframework.web.context.request.RequestAttributes requestAttributes,
boolean includeStackTrace) |
static String |
getQueryString(javax.servlet.http.HttpServletRequest request) |
static String |
getRequestUri(javax.servlet.http.HttpServletRequest request) |
Map<String,Number> |
getStatus() |
protected Integer |
getStatus(org.springframework.web.context.request.RequestAttributes requestAttributes) |
protected void |
print(Throwable exception,
org.springframework.web.context.request.RequestAttributes requestAttributes,
boolean includeStackTrace) |
void |
setStatus(Map<String,Number> status) |
protected final org.apache.commons.logging.Log logger
public static final Pattern PATTERN
public static final String LINE_SEPARATOR
public static final String DEFAULT_ERROR
public static final String DEFAULT_ERROR_TIMESTAMP
public static final String DEFAULT_ERROR_MESSAGE
public static final String DEFAULT_ERROR_DESCRIPTION
public static final String DEFAULT_ERROR_TRACE
public static final String DEFAULT_ERROR_STATUS
public static final String DEFAULT_ERROR_URI
public static final String DEFAULT_ERROR_THROWABLE
public static final String DEFAULT_ERROR_EXCEPTION
public static final String DEFAULT_ERRORS
public static final String DEFAULT_ERRORS_COUNT
public DefaultErrorAttributesCustom(org.springframework.context.MessageSource messageSource)
public Map<String,Object> getErrorAttributes(org.springframework.web.context.request.RequestAttributes requestAttributes, boolean includeStackTrace)
getErrorAttributes in interface org.springframework.boot.autoconfigure.web.ErrorAttributesgetErrorAttributes in class org.springframework.boot.autoconfigure.web.DefaultErrorAttributesprotected Integer getStatus(org.springframework.web.context.request.RequestAttributes requestAttributes)
protected void print(Throwable exception, org.springframework.web.context.request.RequestAttributes requestAttributes, boolean includeStackTrace)
public Throwable getError(org.springframework.web.context.request.RequestAttributes requestAttributes)
getError in interface org.springframework.boot.autoconfigure.web.ErrorAttributesgetError in class org.springframework.boot.autoconfigure.web.DefaultErrorAttributesWebUtils.ERROR_EXCEPTION_ATTRIBUTE,
org.springframework.security.web.WebAttributes#ACCESS_DENIED_403,
org.springframework.security.web.WebAttributes#AUTHENTICATION_EXCEPTIONpublic static String getRequestUri(javax.servlet.http.HttpServletRequest request)
WebUtils.INCLUDE_REQUEST_URI_ATTRIBUTEpublic static String getQueryString(javax.servlet.http.HttpServletRequest request)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.