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

    Modifier and Type
    Method
    Description
    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 Details

    • CustomErrorAttributes

      public CustomErrorAttributes()
  • Method Details

    • 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