Enum PostgreSQLVendorError
- java.lang.Object
-
- java.lang.Enum<PostgreSQLVendorError>
-
- org.apache.shardingsphere.dialect.postgresql.vendor.PostgreSQLVendorError
-
- All Implemented Interfaces:
Serializable,Comparable<PostgreSQLVendorError>,org.apache.shardingsphere.infra.util.exception.external.sql.vendor.VendorError
public enum PostgreSQLVendorError extends Enum<PostgreSQLVendorError> implements org.apache.shardingsphere.infra.util.exception.external.sql.vendor.VendorError
PostgreSQL vendor error.- See Also:
- Appendix A. PostgreSQL Error Codes
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetVendorCode()static PostgreSQLVendorErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static PostgreSQLVendorError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESSFUL_COMPLETION
public static final PostgreSQLVendorError SUCCESSFUL_COMPLETION
-
PRIVILEGE_NOT_GRANTED
public static final PostgreSQLVendorError PRIVILEGE_NOT_GRANTED
-
PROTOCOL_VIOLATION
public static final PostgreSQLVendorError PROTOCOL_VIOLATION
-
FEATURE_NOT_SUPPORTED
public static final PostgreSQLVendorError FEATURE_NOT_SUPPORTED
-
DUPLICATE_DATABASE
public static final PostgreSQLVendorError DUPLICATE_DATABASE
-
DUPLICATE_TABLE
public static final PostgreSQLVendorError DUPLICATE_TABLE
-
INVALID_AUTHORIZATION_SPECIFICATION
public static final PostgreSQLVendorError INVALID_AUTHORIZATION_SPECIFICATION
-
NO_USERNAME
public static final PostgreSQLVendorError NO_USERNAME
-
INVALID_PASSWORD
public static final PostgreSQLVendorError INVALID_PASSWORD
-
INVALID_CATALOG_NAME
public static final PostgreSQLVendorError INVALID_CATALOG_NAME
-
UNDEFINED_COLUMN
public static final PostgreSQLVendorError UNDEFINED_COLUMN
-
DATA_SOURCE_REJECTED_CONNECTION_ATTEMPT
public static final PostgreSQLVendorError DATA_SOURCE_REJECTED_CONNECTION_ATTEMPT
-
TRANSACTION_STATE_INVALID
public static final PostgreSQLVendorError TRANSACTION_STATE_INVALID
-
WRONG_VALUE_COUNT_ON_ROW
public static final PostgreSQLVendorError WRONG_VALUE_COUNT_ON_ROW
-
INVALID_PARAMETER_VALUE
public static final PostgreSQLVendorError INVALID_PARAMETER_VALUE
-
SYSTEM_ERROR
public static final PostgreSQLVendorError SYSTEM_ERROR
-
-
Method Detail
-
values
public static PostgreSQLVendorError[] 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 (PostgreSQLVendorError c : PostgreSQLVendorError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostgreSQLVendorError 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 nameNullPointerException- if the argument is null
-
getVendorCode
public int getVendorCode()
- Specified by:
getVendorCodein interfaceorg.apache.shardingsphere.infra.util.exception.external.sql.vendor.VendorError
-
-