| Modifier and Type | Field and Description |
|---|---|
| private final transient HttpResponse | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | WebSocketHandshakeException(HttpResponse<?>
the response)HttpResponse that resulted in the handshake failureConstructs a |
| Modifier and Type | Method and Description |
|---|---|
| public HttpResponse | |
| public WebSocketHandshakeException | initCause(Throwable cause)
Overrides java. Initializes the cause of this throwable to the specified value. |
| response | back to summary |
|---|---|
| private final transient HttpResponse<?> response | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| WebSocketHandshakeException | back to summary |
|---|---|
| public WebSocketHandshakeException(HttpResponse<?> response) Constructs a
| |
| getResponse | back to summary |
|---|---|
| public HttpResponse Returns the server's counterpart of the opening handshake. The value may be unavailable ( API Note The primary purpose of this method is to allow programmatic examination of the reasons behind the failure of the opening handshake. Some of these reasons might allow recovery.
| |
| initCause | back to summary |
|---|---|
| public WebSocketHandshakeException initCause(Throwable cause) Overrides java. Doc from java. Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.) This method can be called at most once. It is generally called from
within the constructor, or immediately after creating the
throwable. If this throwable was created
with An example of using this method on a legacy throwable type without other support for setting the cause is:
try {
lowLevelOp();
} catch (LowLevelException le) {
throw (HighLevelException)
new HighLevelException().initCause(le); // Legacy constructor
}
| |