public class FailedRequestException
extends java.io.IOException
Constructor and Description |
---|
FailedRequestException(com.google.common.collect.ImmutableList<java.lang.Integer> expectedStatusCodes,
int statusCode,
Error error,
java.lang.String responseString,
java.lang.String requestId) |
FailedRequestException(int[] expectedStatusCodes,
int statusCode,
Error error,
java.lang.String responseString,
java.lang.String requestId) |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
buildExceptionMessage(Error error,
com.google.common.collect.ImmutableList<java.lang.Integer> expectedStatusCodes,
int statusCode,
java.lang.String requestId) |
protected static java.lang.String |
buildRequestIdMessage(java.lang.String requestId)
Creates the request-ID portion of the exception message.
|
Error |
getError() |
java.util.List<java.lang.Integer> |
getExpectedStatusCodes() |
java.lang.String |
getRequestId() |
java.lang.String |
getResponseString() |
int |
getStatusCode() |
java.lang.String |
toString() |
public FailedRequestException(int[] expectedStatusCodes, int statusCode, Error error, java.lang.String responseString, java.lang.String requestId)
public FailedRequestException(com.google.common.collect.ImmutableList<java.lang.Integer> expectedStatusCodes, int statusCode, Error error, java.lang.String responseString, java.lang.String requestId)
public int getStatusCode()
public java.util.List<java.lang.Integer> getExpectedStatusCodes()
public Error getError()
public java.lang.String getResponseString()
public java.lang.String getRequestId()
protected static java.lang.String buildExceptionMessage(Error error, com.google.common.collect.ImmutableList<java.lang.Integer> expectedStatusCodes, int statusCode, java.lang.String requestId)
protected static java.lang.String buildRequestIdMessage(java.lang.String requestId)
public java.lang.String toString()
toString
in class java.lang.Throwable