com.sun.grizzly.websockets
Class HandshakeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.grizzly.websockets.HandshakeException
- All Implemented Interfaces:
- Serializable
public class HandshakeException
- extends RuntimeException
Exception
, which describes the error, occurred during the WebSocket
handshake phase.
- Author:
- Alexey Stashok
- See Also:
- Serialized Form
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 |
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 codemessage
- error description
HandshakeException
public HandshakeException(String message,
IOException e)
getCode
public int getCode()
- Get the error code.
- Returns:
- the error code.
Copyright © 2012 Oracle Corporation. All Rights Reserved.