Class ProviderApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.customer.client.exception.ProviderApiException
All Implemented Interfaces:
Serializable

public class ProviderApiException extends RuntimeException
Defines a generic error that can be thrown in response to receiving an error from an API that one of the providers (e.g., CustomerSegmentProvider) received. This allows the error to bubble up to the local endpoint and be returned.
Author:
Chris Kittrell (ckittrell)
See Also:
  • Constructor Details

    • ProviderApiException

      public ProviderApiException(org.springframework.web.reactive.function.client.WebClientResponseException receivedException)
    • ProviderApiException

      public ProviderApiException(String message, org.springframework.web.reactive.function.client.WebClientResponseException receivedException)
    • ProviderApiException

      public ProviderApiException(String message, Throwable cause, org.springframework.web.reactive.function.client.WebClientResponseException receivedException)
    • ProviderApiException

      public ProviderApiException(Throwable cause, org.springframework.web.reactive.function.client.WebClientResponseException receivedException)
  • Method Details

    • getReceivedException

      public org.springframework.web.reactive.function.client.WebClientResponseException getReceivedException()
      The received error.
      Returns:
      The received error.