Class MavenPomDownloader.HttpSenderResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openrewrite.maven.internal.MavenPomDownloader.HttpSenderResponseException
All Implemented Interfaces:
Serializable
Enclosing class:
MavenPomDownloader

public static class MavenPomDownloader.HttpSenderResponseException extends Exception
See Also:
  • Constructor Details

    • HttpSenderResponseException

      public HttpSenderResponseException(@Nullable Throwable cause, @Nullable Integer responseCode, String body)
  • Method Details

    • isClientSideException

      public boolean isClientSideException()
      All 400s are considered client-side exceptions, but we only want to cache ones that are unlikely to change if requested again in order to save on time spent making HTTP calls.
      For 408 TIMEOUT, 425 TOO_EARLY, and 429 TOO_MANY_REQUESTS, these are likely to change if not cached.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • isAccessDenied

      public boolean isAccessDenied()
    • isServerReached

      public boolean isServerReached()