Enum Class ConnectionNotAvailableReason

java.lang.Object
java.lang.Enum<ConnectionNotAvailableReason>
oracle.dbtools.plugin.api.jdbc.ConnectionNotAvailableReason
All Implemented Interfaces:
Serializable, Comparable<ConnectionNotAvailableReason>, Constable

public enum ConnectionNotAvailableReason extends Enum<ConnectionNotAvailableReason>
Categorizes the reason a database connection could not be created
Author:
cdivilly
  • Enum Constant Details

    • NOT_AUTHORIZED_OR_NOT_FOUND

      public static final ConnectionNotAvailableReason NOT_AUTHORIZED_OR_NOT_FOUND
      The client is not authorized to access the connection, or the connection does not exist
    • SERVER_REJECTED_CONNECTION

      public static final ConnectionNotAvailableReason 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

      public static final ConnectionNotAvailableReason CLIENT_COULD_NOT_ESTABLISH_CONNECTION
      The database could not be reached. Possibly because the connection information is incorrect.
  • Method Details

    • values

      public static ConnectionNotAvailableReason[] 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

      public static ConnectionNotAvailableReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • sqlState

      public String sqlState()