Package org.glassfish.grizzly.websockets
Class HandshakeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.glassfish.grizzly.websockets.WebSocketException
org.glassfish.grizzly.websockets.HandshakeException
- All Implemented Interfaces:
Serializable
- Author:
- Alexey Stashok
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHandshakeException(int code, String message) Construct a HandshakeException.HandshakeException(String message) Construct a HandshakeException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HandshakeException
Construct a HandshakeException.- Parameters:
message- error description
-
HandshakeException
Construct a HandshakeException.- Parameters:
code- error codemessage- error description
-
-
Method Details
-
getCode
public int getCode()Get the error code.- Returns:
- the error code.
-