Package io.wcm.caravan.io.http
Class IllegalResponseRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.wcm.caravan.io.http.IllegalResponseRuntimeException
-
- All Implemented Interfaces:
Serializable
@ProviderType public final class IllegalResponseRuntimeException extends RuntimeException
Exception is thrown when a resilient HTTP response was received, but rated illegal (e.g. beause of status code).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalResponseRuntimeException(CaravanHttpRequest request, String requestUri, int responseStatusCode, String responseBody, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaravanHttpRequest
getRequest()
String
getRequestUri()
String
getResponseBody()
int
getResponseStatusCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalResponseRuntimeException
public IllegalResponseRuntimeException(CaravanHttpRequest request, String requestUri, int responseStatusCode, String responseBody, String message)
- Parameters:
request
- RequestrequestUri
- Full request URIresponseStatusCode
- Response satus coderesponseBody
- Response bdoymessage
- Error message
-
-
Method Detail
-
getRequest
public CaravanHttpRequest getRequest()
- Returns:
- Request
-
getRequestUri
public String getRequestUri()
- Returns:
- Full request URI
-
getResponseStatusCode
public int getResponseStatusCode()
- Returns:
- Response status code
-
getResponseBody
public String getResponseBody()
- Returns:
- Response body
-
-