Package com.linecorp.armeria.client
Class InvalidResponseHeadersException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.client.InvalidResponseException
com.linecorp.armeria.client.InvalidResponseHeadersException
- All Implemented Interfaces:
Serializable
public final class InvalidResponseHeadersException extends InvalidResponseException
An
InvalidResponseException
raised when a client received a response with invalid headers.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description InvalidResponseHeadersException(ResponseHeaders headers)
Creates a new instance with the specifiedResponseHeaders
.InvalidResponseHeadersException(ResponseHeaders headers, Throwable cause)
Creates a new instance with the specifiedResponseHeaders
andcause
. -
Method Summary
Modifier and Type Method Description ResponseHeaders
headers()
Returns theResponseHeaders
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
-
InvalidResponseHeadersException
Creates a new instance with the specifiedResponseHeaders
. -
InvalidResponseHeadersException
Creates a new instance with the specifiedResponseHeaders
andcause
.
-
-
Method Details
-
headers
Returns theResponseHeaders
which triggered this exception.
-