Class 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 Detail

      • CustomErrorAttributes

        public CustomErrorAttributes()
    • Method Detail

      • getErrorAttributes

        public Map<String,​Object> getErrorAttributes​(org.springframework.web.context.request.WebRequest webRequest,
                                                           UserInterfaceErrorCodes errorCode)
        Parameters:
        webRequest - initial request
        errorCode - the error code
        Returns:
        error attributes to return to client