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
-
-
Constructor Summary
Constructors Constructor Description CustomErrorAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getErrorAttributes(org.springframework.web.context.request.WebRequest webRequest, UserInterfaceErrorCodes errorCode)
-
-
-
Method Detail
-
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
-
-