org.glassfish.grizzly.websockets
Class HandshakeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.glassfish.grizzly.websockets.HandshakeException
- All Implemented Interfaces:
- Serializable
public class HandshakeException
- extends Exception
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
getCode
public int getCode()
- Get the error code.
- Returns:
- the error code.
Copyright © 2010 Oracle Corpration. All Rights Reserved.