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
An
InvalidResponseException
raised when a client received a response with invalid headers.- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionCreates a new instance with the specifiedResponseHeaders
.InvalidResponseHeadersException(ResponseHeaders headers, @Nullable Throwable cause)
Creates a new instance with the specifiedResponseHeaders
andcause
. -
Method Summary
Modifier and TypeMethodDescriptionheaders()
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
public InvalidResponseHeadersException(ResponseHeaders headers, @Nullable @Nullable Throwable cause)Creates a new instance with the specifiedResponseHeaders
andcause
.
-
-
Method Details
-
headers
Returns theResponseHeaders
which triggered this exception.
-