Serializablepublic final class WebSocketHandshakeException extends IOException
| Constructor | Description |
|---|---|
WebSocketHandshakeException(HttpResponse<?> response) |
| Modifier and Type | Method | Description |
|---|---|---|
HttpResponse<?> |
getResponse() |
Returns the server's counterpart of the opening handshake.
|
WebSocketHandshakeException |
initCause(Throwable cause) |
Initializes the cause of this throwable to the specified value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WebSocketHandshakeException(HttpResponse<?> response)
public HttpResponse<?> getResponse()
The value may be unavailable (null) if this exception has
been serialized and then read back in.
public WebSocketHandshakeException initCause(Throwable cause)
java.lang.ThrowableThis 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 Throwable(Throwable) or
Throwable(String,Throwable), this method cannot be called
even once.
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
}
initCause in class Throwablecause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)Throwable instance. Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2