Class WebSocketHandshakeException



  • public final class WebSocketHandshakeException
    extends java.io.IOException
    An exception used to signal the opening handshake failed.
    Since:
    9
    See Also:
    Serialized Form
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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
      • initCause

        public WebSocketHandshakeException initCause(java.lang.Throwable cause)
        Overrides:
        initCause in class java.lang.Throwable