public class ServerException extends WebSocketException
WebSocketException
type. It is thrown during when the error is caused by the server (such as an invalid HTTP status
code during the opening handshake).Constructor and Description |
---|
ServerException() |
ServerException(String string)
Create a new server exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode()
Get the the HTTP status code returned by the server.
|
void |
setHttpStatusCode(int httpStatusCode)
Set the the HTTP status code returned by the server.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
public ServerException()
public ServerException(String string)
string
- message to describe the error casepublic int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
httpStatusCode
- the status code