- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- jdk.incubator.http.WebSocketHandshakeException
-
- All Implemented Interfaces:
Serializable
public final class WebSocketHandshakeException extends IOException
An exception used to signal the opening handshake failed.
Incubating Feature. Will be removed in a future release.- Since:
- 9
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketHandshakeException(HttpResponse<?> response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse<?>
getResponse()
Returns the server's counterpart of the opening handshake.-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WebSocketHandshakeException
public WebSocketHandshakeException(HttpResponse<?> response)
-
-
Method Detail
-
getResponse
public HttpResponse<?> getResponse()
Returns the server's counterpart of the opening handshake.The value may be unavailable (
null
) if this exception has been serialized and then read back in.- Returns:
- server response
-
-