Package oracle.dbtools.plugin.api.jdbc
Enum Class ConnectionNotAvailableReason
java.lang.Object
java.lang.Enum<ConnectionNotAvailableReason>
oracle.dbtools.plugin.api.jdbc.ConnectionNotAvailableReason
- All Implemented Interfaces:
Serializable,Comparable<ConnectionNotAvailableReason>,Constable
Categorizes the reason a database connection could not be created
- Author:
- cdivilly
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe database could not be reached.The client is not authorized to access the connection, or the connection does not existThe server rejected the connection attempt. -
Method Summary
Modifier and TypeMethodDescriptionsqlState()static ConnectionNotAvailableReasonReturns the enum constant of this class with the specified name.static ConnectionNotAvailableReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. Possibly because the information used to establish the connection (e.g. TLS certificates etc) is out of date. The caller should ensure they have the latest connection information and re-attempt to create the connection -
CLIENT_COULD_NOT_ESTABLISH_CONNECTION
The database could not be reached. Possibly because the connection information is incorrect.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
sqlState
-