java.lang.Object
org.springframework.boot.web.reactive.error.DefaultErrorAttributes
es.kukenan.smartfi.microservice.security.gateway.configuration.GlobalErrorAttributes
All Implemented Interfaces:
org.springframework.boot.web.reactive.error.ErrorAttributes

@Component public class GlobalErrorAttributes extends org.springframework.boot.web.reactive.error.DefaultErrorAttributes
Global error attributes for web flux error handler.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    message of the request.
    private org.springframework.http.HttpStatus
    Status of the request.

    Fields inherited from interface org.springframework.boot.web.reactive.error.ErrorAttributes

    ERROR_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, org.springframework.boot.web.error.ErrorAttributeOptions errorAttributeOptions)
    Get error attributes for webflux errors handler.

    Methods inherited from class org.springframework.boot.web.reactive.error.DefaultErrorAttributes

    getError, storeErrorInformation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • status

      private org.springframework.http.HttpStatus status
      Status of the request.
    • message

      private String message
      message of the request.
  • Constructor Details

    • GlobalErrorAttributes

      public GlobalErrorAttributes()
      Constructor.
  • Method Details

    • getErrorAttributes

      public Map<String,Object> getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, org.springframework.boot.web.error.ErrorAttributeOptions errorAttributeOptions)
      Get error attributes for webflux errors handler.
      Specified by:
      getErrorAttributes in interface org.springframework.boot.web.reactive.error.ErrorAttributes
      Overrides:
      getErrorAttributes in class org.springframework.boot.web.reactive.error.DefaultErrorAttributes
      Parameters:
      request - Request with data.
      errorAttributeOptions - booloean for include stac trace of exception.
      Returns:
      Map with error attributes.