Enum JdbcConstants.ErrorCodes

java.lang.Object
java.lang.Enum<JdbcConstants.ErrorCodes>
org.wso2.carbon.database.utils.jdbc.JdbcConstants.ErrorCodes
All Implemented Interfaces:
Serializable, Comparable<JdbcConstants.ErrorCodes>, java.lang.constant.Constable
Enclosing class:
JdbcConstants

public static enum JdbcConstants.ErrorCodes extends Enum<JdbcConstants.ErrorCodes>
Error codes for the exceptions in jdbcTemplate.
  • Enum Constant Details

    • ERROR_CODE_DATABASE_QUERY_PERFORMING_ERROR

      public static final JdbcConstants.ErrorCodes ERROR_CODE_DATABASE_QUERY_PERFORMING_ERROR
    • ERROR_CODE_GET_DB_TYPE

      public static final JdbcConstants.ErrorCodes ERROR_CODE_GET_DB_TYPE
    • ERROR_CODE_AUTO_GENERATED_ID_FAILURE

      public static final JdbcConstants.ErrorCodes ERROR_CODE_AUTO_GENERATED_ID_FAILURE
    • ERROR_CODE_DATABASE_QUERY_PERFORMING

      public static final JdbcConstants.ErrorCodes ERROR_CODE_DATABASE_QUERY_PERFORMING
    • ERROR_CODE_GETTING_CONNECTION_FAILURE

      public static final JdbcConstants.ErrorCodes ERROR_CODE_GETTING_CONNECTION_FAILURE
    • ERROR_CODE_ROLLBACK_TRANSACTION_FAILURE

      public static final JdbcConstants.ErrorCodes ERROR_CODE_ROLLBACK_TRANSACTION_FAILURE
    • ERROR_CODE_COMMIT_TRANSACTION_FAILURE

      public static final JdbcConstants.ErrorCodes ERROR_CODE_COMMIT_TRANSACTION_FAILURE
    • ERROR_CODE_CLOSE_CONNECTION_FAILURE

      public static final JdbcConstants.ErrorCodes ERROR_CODE_CLOSE_CONNECTION_FAILURE
    • ERROR_CODE_MORE_RECORDS_IN_SINGLE_FETCH

      public static final JdbcConstants.ErrorCodes ERROR_CODE_MORE_RECORDS_IN_SINGLE_FETCH
  • Method Details

    • values

      public static JdbcConstants.ErrorCodes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static JdbcConstants.ErrorCodes valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getErrorCode

      public String getErrorCode()
    • getErrorMessage

      public String getErrorMessage()