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(java.lang.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.
|
public ServerException(java.lang.String string)
string - message to describe the error casepublic ServerException()
public int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
httpStatusCode - the status code