public enum PSQLState extends Enum<PSQLState>
Modifier and Type | Method and Description |
---|---|
String |
getState() |
static boolean |
isConnectionError(@Nullable String psqlState) |
static PSQLState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PSQLState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PSQLState UNKNOWN_STATE
public static final PSQLState TOO_MANY_RESULTS
public static final PSQLState NO_DATA
public static final PSQLState INVALID_PARAMETER_TYPE
public static final PSQLState CONNECTION_UNABLE_TO_CONNECT
public static final PSQLState CONNECTION_DOES_NOT_EXIST
public static final PSQLState CONNECTION_REJECTED
public static final PSQLState CONNECTION_FAILURE
public static final PSQLState CONNECTION_FAILURE_DURING_TRANSACTION
public static final PSQLState PROTOCOL_VIOLATION
public static final PSQLState COMMUNICATION_ERROR
public static final PSQLState NOT_IMPLEMENTED
public static final PSQLState DATA_ERROR
public static final PSQLState STRING_DATA_RIGHT_TRUNCATION
public static final PSQLState NUMERIC_VALUE_OUT_OF_RANGE
public static final PSQLState BAD_DATETIME_FORMAT
public static final PSQLState DATETIME_OVERFLOW
public static final PSQLState DIVISION_BY_ZERO
public static final PSQLState MOST_SPECIFIC_TYPE_DOES_NOT_MATCH
public static final PSQLState INVALID_PARAMETER_VALUE
public static final PSQLState NOT_NULL_VIOLATION
public static final PSQLState FOREIGN_KEY_VIOLATION
public static final PSQLState UNIQUE_VIOLATION
public static final PSQLState CHECK_VIOLATION
public static final PSQLState EXCLUSION_VIOLATION
public static final PSQLState INVALID_CURSOR_STATE
public static final PSQLState TRANSACTION_STATE_INVALID
public static final PSQLState ACTIVE_SQL_TRANSACTION
public static final PSQLState NO_ACTIVE_SQL_TRANSACTION
public static final PSQLState IN_FAILED_SQL_TRANSACTION
public static final PSQLState INVALID_SQL_STATEMENT_NAME
public static final PSQLState INVALID_AUTHORIZATION_SPECIFICATION
public static final PSQLState INVALID_PASSWORD
public static final PSQLState INVALID_TRANSACTION_TERMINATION
public static final PSQLState STATEMENT_NOT_ALLOWED_IN_FUNCTION_CALL
public static final PSQLState INVALID_SAVEPOINT_SPECIFICATION
public static final PSQLState SERIALIZATION_FAILURE
public static final PSQLState DEADLOCK_DETECTED
public static final PSQLState SYNTAX_ERROR
public static final PSQLState UNDEFINED_COLUMN
public static final PSQLState UNDEFINED_OBJECT
public static final PSQLState WRONG_OBJECT_TYPE
public static final PSQLState NUMERIC_CONSTANT_OUT_OF_RANGE
public static final PSQLState DATA_TYPE_MISMATCH
public static final PSQLState UNDEFINED_FUNCTION
public static final PSQLState INVALID_NAME
public static final PSQLState DATATYPE_MISMATCH
public static final PSQLState CANNOT_COERCE
public static final PSQLState UNDEFINED_TABLE
public static final PSQLState OUT_OF_MEMORY
public static final PSQLState OBJECT_NOT_IN_STATE
public static final PSQLState OBJECT_IN_USE
public static final PSQLState QUERY_CANCELED
public static final PSQLState SYSTEM_ERROR
public static final PSQLState IO_ERROR
public static final PSQLState UNEXPECTED_ERROR
public static PSQLState[] values()
for (PSQLState c : PSQLState.values()) System.out.println(c);
public static PSQLState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getState()
public static boolean isConnectionError(@Nullable String psqlState)
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.