Package jdk.incubator.http
Class WebSocketHandshakeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- jdk.incubator.http.WebSocketHandshakeException
-
public final class WebSocketHandshakeException extends java.io.IOException
An exception used to signal the opening handshake failed.- 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.WebSocketHandshakeException
initCause(java.lang.Throwable cause)
-
-
-
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
-
initCause
public WebSocketHandshakeException initCause(java.lang.Throwable cause)
- Overrides:
initCause
in classjava.lang.Throwable
-
-