Package com.linecorp.armeria.client
Class InvalidHttpResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.client.InvalidResponseException
com.linecorp.armeria.client.InvalidHttpResponseException
- All Implemented Interfaces:
Serializable
An
InvalidResponseException
raised when a client received an invalid HttpResponse
.- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new instance with the specifiedAggregatedHttpResponse
.InvalidHttpResponseException
(AggregatedHttpResponse response, @Nullable Throwable cause) Creates a new instance with the specifiedAggregatedHttpResponse
andThrowable
.InvalidHttpResponseException
(AggregatedHttpResponse response, String message, @Nullable Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionresponse()
Returns theAggregatedHttpResponse
which triggered this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidHttpResponseException
Creates a new instance with the specifiedAggregatedHttpResponse
.- Throws:
IllegalArgumentException
- if theAggregatedHttpResponse
has a pooled content.
-
InvalidHttpResponseException
public InvalidHttpResponseException(AggregatedHttpResponse response, @Nullable @Nullable Throwable cause) Creates a new instance with the specifiedAggregatedHttpResponse
andThrowable
.- Throws:
IllegalArgumentException
- if theAggregatedHttpResponse
has a pooled content.
-
InvalidHttpResponseException
public InvalidHttpResponseException(AggregatedHttpResponse response, String message, @Nullable @Nullable Throwable cause) - Throws:
IllegalArgumentException
- if theAggregatedHttpResponse
has a pooled content.
-
-
Method Details
-
response
Returns theAggregatedHttpResponse
which triggered this exception.
-