public enum ConnectionNotAvailableReason extends Enum<ConnectionNotAvailableReason>
Enum Constant and Description |
---|
CLIENT_COULD_NOT_ESTABLISH_CONNECTION
The database could not be reached.
|
NOT_AUTHORIZED_OR_NOT_FOUND
The client is not authorized to access the connection, or the connection does not exist
|
SERVER_REJECTED_CONNECTION
The server rejected the connection attempt.
|
Modifier and Type | Method and Description |
---|---|
String |
sqlState() |
static ConnectionNotAvailableReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionNotAvailableReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionNotAvailableReason NOT_AUTHORIZED_OR_NOT_FOUND
public static final ConnectionNotAvailableReason SERVER_REJECTED_CONNECTION
public static final ConnectionNotAvailableReason CLIENT_COULD_NOT_ESTABLISH_CONNECTION
public static ConnectionNotAvailableReason[] values()
for (ConnectionNotAvailableReason c : ConnectionNotAvailableReason.values()) System.out.println(c);
public static ConnectionNotAvailableReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String sqlState()