Class CustomErrorDetails

  • All Implemented Interfaces:
    org.springframework.boot.web.servlet.error.ErrorAttributes, org.springframework.core.Ordered, org.springframework.web.servlet.HandlerExceptionResolver

    @Component
    public class CustomErrorDetails
    extends org.springframework.boot.web.servlet.error.DefaultErrorAttributes
    • Field Summary

      • 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, boolean includeStackTrace)  
      • Methods inherited from class org.springframework.boot.web.servlet.error.DefaultErrorAttributes

        getError, getOrder, resolveException
      • Methods inherited from class java.lang.Object

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

      • CustomErrorDetails

        public CustomErrorDetails()
    • Method Detail

      • getErrorAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getErrorAttributes​(org.springframework.web.context.request.WebRequest webRequest,
                                                                                         boolean includeStackTrace)
        Specified by:
        getErrorAttributes in interface org.springframework.boot.web.servlet.error.ErrorAttributes
        Overrides:
        getErrorAttributes in class org.springframework.boot.web.servlet.error.DefaultErrorAttributes