Class WebClientExceptionHelper

java.lang.Object
com.broadleafcommerce.cartoperation.exception.WebClientExceptionHelper

public final class WebClientExceptionHelper extends Object
  • Method Details

    • findRequestExceptionRootCause

      @Nullable public static String findRequestExceptionRootCause(org.springframework.web.reactive.function.client.WebClientRequestException e)
      Attempt to find a reason for a WebClientRequestException
      Parameters:
      e - The exception
      Returns:
      The cause, if available;
    • addRequestExceptionCode

      public static void addRequestExceptionCode(@NonNull @NonNull String fullClassName, @NonNull @NonNull String code)
      Add a mapping for a potential root cause of a WebClientRequestException.
      Parameters:
      fullClassName - The full class name of the throwable.
      code - The error code.