public class ServerException
extends java.lang.Exception
Modifier and Type | Class and Description |
---|---|
static class |
ServerException.AuthenticationException
An exception indicating that a login has failed due to an authentication error,
invalid username or password
|
static class |
ServerException.ConnectionValidationException
An exception indicating that a connection validation has failed
|
static class |
ServerException.LoginException
An exception indicating that a login has failed
|
static class |
ServerException.ServerFullException
An exception indicating that the server is not accepting new connections
|
Modifier and Type | Method and Description |
---|---|
static ServerException.AuthenticationException |
authenticationException(java.lang.String message) |
static ServerException.LoginException |
loginException(java.lang.String message) |
static ServerException.ServerFullException |
serverFullException() |
public static ServerException.ServerFullException serverFullException()
public static ServerException.LoginException loginException(java.lang.String message)
message
- the exception messagepublic static ServerException.AuthenticationException authenticationException(java.lang.String message)
message
- the exception message