org.glassfish.grizzly.websockets
Class HandshakeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.glassfish.grizzly.websockets.WebSocketException
                  extended by org.glassfish.grizzly.websockets.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:
Serialized Form

Constructor Summary
HandshakeException(int code, String message)
          Construct a HandshakeException.
HandshakeException(String message)
          Construct a HandshakeException.
 
Method Summary
 int getCode()
          Get the error code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getCode

public int getCode()
Get the error code.

Returns:
the error code.


Copyright © 2013 Oracle Corporation. All Rights Reserved.