Module io.netty5.codec.http
Class WebSocketClientHandshakeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.netty5.handler.codec.http.websocketx.WebSocketHandshakeException
-
- io.netty5.handler.codec.http.websocketx.WebSocketClientHandshakeException
-
- All Implemented Interfaces:
Serializable
public final class WebSocketClientHandshakeException extends WebSocketHandshakeException
Client exception during handshaking process.IMPORTANT: This exception does not contain any
ReferenceCounted
fields e.g.FullHttpResponse
, so no special treatment is needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketClientHandshakeException(String message)
WebSocketClientHandshakeException(String message, HttpResponse httpResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
response()
Returns aresponse
if exception occurs during response validation otherwisenull
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WebSocketClientHandshakeException
public WebSocketClientHandshakeException(String message)
-
WebSocketClientHandshakeException
public WebSocketClientHandshakeException(String message, HttpResponse httpResponse)
-
-
Method Detail
-
response
public HttpResponse response()
Returns aresponse
if exception occurs during response validation otherwisenull
.
-
-