Class WebClientHttpRequestAwareErrorResolver

java.lang.Object
com.broadleafcommerce.dataexchange.service.error.WebClientHttpRequestAwareErrorResolver
Direct Known Subclasses:
WebClientBadRequestExceptionErrorResolver, WebClientExceptionErrorResolver

public abstract class WebClientHttpRequestAwareErrorResolver extends Object
Adds support for utility methods to set various request parameters on the error object. These include the path, HTTP method (GET, POST, etc.), and headers (if enabled).
  • Constructor Details

  • Method Details

    • populateRequestInfoFields

      protected void populateRequestInfoFields(DataExchangeError error, org.springframework.web.reactive.function.client.WebClientResponseException exception)
      Sets the URL path and headers (if enabled and available) on the error object.
      Parameters:
      error - the error object
      exception - the exception
    • setHeadersOnResponse

      protected void setHeadersOnResponse(DataExchangeError error, org.springframework.web.reactive.function.client.WebClientResponseException exception)
      Sets the request headers on the error object if enabled and available.
      Parameters:
      error - the error object
      exception - the web client response exception
      See Also: