Package org.openrewrite.maven.internal
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpSenderResponseException
(@Nullable Throwable cause, @Nullable Integer responseCode, String body) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
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.boolean
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpSenderResponseException
-
-
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
- Overrides:
getMessage
in classThrowable
-
isAccessDenied
public boolean isAccessDenied() -
isServerReached
public boolean isServerReached()
-