Class WebSocketServerHandshakeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.netty.handler.codec.http.websocketx.WebSocketHandshakeException
io.netty.handler.codec.http.websocketx.WebSocketServerHandshakeException
All Implemented Interfaces:
java.io.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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final HttpRequest
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebSocketServerHandshakeException(java.lang.String message)
     
    WebSocketServerHandshakeException(java.lang.String message, HttpRequest httpRequest)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a request if exception occurs during request validation otherwise null.

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • WebSocketServerHandshakeException

      public WebSocketServerHandshakeException(java.lang.String message)
    • WebSocketServerHandshakeException

      public WebSocketServerHandshakeException(java.lang.String message, HttpRequest httpRequest)
  • Method Details

    • request

      public HttpRequest request()
      Returns a request if exception occurs during request validation otherwise null.