Class CustomErrorAttributes
java.lang.Object
org.springframework.boot.web.servlet.error.DefaultErrorAttributes
org.odpi.openmetadata.userinterface.uichassis.springboot.api.CustomErrorAttributes
- All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorAttributes
,org.springframework.core.Ordered
,org.springframework.web.servlet.HandlerExceptionResolver
@Component
public class CustomErrorAttributes
extends org.springframework.boot.web.servlet.error.DefaultErrorAttributes
-
Field Summary
Fields inherited from interface org.springframework.boot.web.servlet.error.ErrorAttributes
ERROR_ATTRIBUTE
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, UserInterfaceErrorCodes errorCode) Methods inherited from class org.springframework.boot.web.servlet.error.DefaultErrorAttributes
getError, getErrorAttributes, getMessage, getOrder, resolveException
-
Constructor Details
-
CustomErrorAttributes
public CustomErrorAttributes()
-
-
Method Details
-
getErrorAttributes
public Map<String,Object> getErrorAttributes(org.springframework.web.context.request.WebRequest webRequest, UserInterfaceErrorCodes errorCode) - Parameters:
webRequest
- initial requesterrorCode
- the error code- Returns:
- error attributes to return to client
-