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
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getErrorAttributes​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomErrorAttributes

        public CustomErrorAttributes()
    • Method Detail

      • getErrorAttributes

        public java.util.Map<java.lang.String,​java.lang.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