public class InvalidResponseHeadersException extends InvalidResponseException
InvalidResponseException raised when a client received a response with invalid headers.| Modifier | 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. |
protected |
InvalidResponseHeadersException(ResponseHeaders headers,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Creates a new instance with the specified
ResponseHeaders, cause,
suppression enabled or disabled, and writable stack trace enabled or disabled. |
| 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, @Nullable Throwable cause)
ResponseHeaders and cause.protected InvalidResponseHeadersException(ResponseHeaders headers, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace)
ResponseHeaders, cause,
suppression enabled or disabled, and writable stack trace enabled or disabled.public ResponseHeaders headers()
ResponseHeaders which triggered this exception.Copyright © 2020 LeanCloud. All rights reserved.