public final class InvalidResponseHeadersException extends InvalidResponseException
InvalidResponseException raised when a client received a response with invalid headers.| Constructor and Description |
|---|
InvalidResponseHeadersException(ResponseHeaders headers)
Creates a new instance with the specified
ResponseHeaders. |
InvalidResponseHeadersException(ResponseHeaders headers,
Throwable cause)
Creates a new instance with the specified
ResponseHeaders and cause. |
| Modifier and Type | Method and Description |
|---|---|
ResponseHeaders |
headers()
Returns the
ResponseHeaders which triggered this exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidResponseHeadersException(ResponseHeaders headers)
ResponseHeaders.public InvalidResponseHeadersException(ResponseHeaders headers, Throwable cause)
ResponseHeaders and cause.public ResponseHeaders headers()
ResponseHeaders which triggered this exception.Copyright © 2020 LeanCloud. All rights reserved.