Enum ConnectionNotAvailableReason

    • Enum Constant Detail

      • 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 Detail

      • values

        public static ConnectionNotAvailableReason[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ConnectionNotAvailableReason c : ConnectionNotAvailableReason.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConnectionNotAvailableReason valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • sqlState

        public java.lang.String sqlState()