Module io.netty5.codec.http
Class WebSocketServerHandshakeException
- 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.WebSocketServerHandshakeException
-
- All Implemented Interfaces:
Serializable
public final class WebSocketServerHandshakeException extends WebSocketHandshakeException
Server exception during handshaking process.IMPORTANT: This exception does not contain any
ReferenceCounted
fields e.g.FullHttpRequest
, so no special treatment is needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebSocketServerHandshakeException(String message)
WebSocketServerHandshakeException(String message, HttpRequest httpRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
request()
Returns arequest
if exception occurs during request validation otherwisenull
.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WebSocketServerHandshakeException
public WebSocketServerHandshakeException(String message)
-
WebSocketServerHandshakeException
public WebSocketServerHandshakeException(String message, HttpRequest httpRequest)
-
-
Method Detail
-
request
public HttpRequest request()
Returns arequest
if exception occurs during request validation otherwisenull
.
-
-