Top Description Fields Constructors Methods
org.glassfish.grizzly.websockets

public Class HandshakeException

extends WebSocketException
Class Inheritance
Imports
org.glassfish.grizzly.http.util.HttpStatus

Exception, which describes the error, occurred during the WebSocket handshake phase.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
HandshakeException(String
error description
message
)

Construct a HandshakeException.

public
HandshakeException(int
error code
code
,
String
error description
message
)

Construct a HandshakeException.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the error code.
getCode
()

Get the error code.

Field Detail

codeback to summary
private final int code

Constructor Detail

HandshakeExceptionback to summary
public HandshakeException(String message)

Construct a HandshakeException.

Parameters
message:String

error description

HandshakeExceptionback to summary
public HandshakeException(int code, String message)

Construct a HandshakeException.

Parameters
code:int

error code

message:String

error description

Method Detail

getCodeback to summary
public int getCode()

Get the error code.

Returns:int

the error code.