Class HandshakeException

All Implemented Interfaces:
Serializable

public class HandshakeException extends WebSocketException
Exception, which describes the error, occurred during the WebSocket handshake phase.
Author:
Alexey Stashok
See Also:
  • Constructor Details

    • HandshakeException

      public HandshakeException(String message)
      Construct a HandshakeException.
      Parameters:
      message - error description
    • HandshakeException

      public HandshakeException(int code, String message)
      Construct a HandshakeException.
      Parameters:
      code - error code
      message - error description
  • Method Details

    • getCode

      public int getCode()
      Get the error code.
      Returns:
      the error code.