Package io.meeds.spring.web.error
Class PortalErrorAttributes
java.lang.Object
org.springframework.boot.webmvc.error.DefaultErrorAttributes
io.meeds.spring.web.error.PortalErrorAttributes
- All Implemented Interfaces:
org.springframework.boot.webmvc.error.ErrorAttributes,org.springframework.core.Ordered,org.springframework.web.servlet.HandlerExceptionResolver
@Component
public class PortalErrorAttributes
extends org.springframework.boot.webmvc.error.DefaultErrorAttributes
Error body attributes of the platform's Spring MVC error page. The
message attribute, included by
spring.web.error.include-message=always, is kept only for a client
error raised with an explicit reason, and is then that reason: a
ResponseStatusException reason or a sendError message, which
is the refusal's message code, or the request echo Spring's own 4xx
refusals carry. Any other message is an exception's own text (a framework
4xx's handler signature or parser error, a validation error's bound object
or method, a 5xx's SQL or file path) and must not reach the browser. An
error whose status is not among the attributes keeps no message either.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetErrorAttributes(org.springframework.web.context.request.WebRequest webRequest, org.springframework.boot.web.error.ErrorAttributeOptions options) Methods inherited from class org.springframework.boot.webmvc.error.DefaultErrorAttributes
getError, getMessage, getOrder, resolveException
-
Constructor Details
-
PortalErrorAttributes
public PortalErrorAttributes()
-
-
Method Details
-
getErrorAttributes
public Map<String,Object> getErrorAttributes(org.springframework.web.context.request.WebRequest webRequest, org.springframework.boot.web.error.ErrorAttributeOptions options) - Specified by:
getErrorAttributesin interfaceorg.springframework.boot.webmvc.error.ErrorAttributes- Overrides:
getErrorAttributesin classorg.springframework.boot.webmvc.error.DefaultErrorAttributes
-