Top Description Fields Constructors Methods
org.glassfish.tyrus.core

public Class HandshakeException

extends Exception
Class Inheritance

Exception, which describes the error, occurred during the handshake phase.
Authors
Alexey Stashok, Pavel Bucek

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
http status code to be set to response.
httpStatusCode
,
String
the detail message. The detail message is saved for later retrieval by the getMessage() method.
message
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the error code.
getHttpStatusCode
()

Get the error code.

Field Detail

httpStatusCodeback to summary
private final int httpStatusCode

Constructor Detail

HandshakeExceptionback to summary
public HandshakeException(String message)

Construct a HandshakeException. HTTP status code will be set to 500.

Parameters
message:String

error description

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

Constructor.

Parameters
httpStatusCode:int

http status code to be set to response.

message:String

the detail message. The detail message is saved for later retrieval by the getMessage() method.

Method Detail

getHttpStatusCodeback to summary
public int getHttpStatusCode()

Get the error code.

Returns:int

the error code.