#[non_exhaustive]pub enum PostgresErrorCode {
Show 258 variants
SuccessfulCompletion,
Warning,
DynamicResultSetsReturned,
ImplicitZeroBitPadding,
NullValueEliminatedInSetFunction,
PrivilegeNotGranted,
PrivilegeNotRevoked,
StringDataRightTruncation01004,
DeprecatedFeature,
NoData,
NoAdditionalDynamicResultSetsReturned,
SqlStatementNotYetComplete,
ConnectionException,
ConnectionDoesNotExist,
ConnectionFailure,
SqlclientUnableToEstablishSqlconnection,
SqlserverRejectedEstablishmentOfSqlconnection,
TransactionResolutionUnknown,
ProtocolViolation,
TriggeredActionException,
FeatureNotSupported,
InvalidTransactionInitiation,
LocatorException,
InvalidLocatorSpecification,
InvalidGrantor,
InvalidGrantOperation,
InvalidRoleSpecification,
DiagnosticsException,
StackedDiagnosticsAccessedWithoutActiveHandler,
CaseNotFound,
CardinalityViolation,
DataException,
ArraySubscriptError,
CharacterNotInRepertoire,
DatetimeFieldOverflow,
DivisionByZero,
ErrorInAssignment,
EscapeCharacterConflict,
IndicatorOverflow,
IntervalFieldOverflow,
InvalidArgumentForLogarithm,
InvalidArgumentForNtileFunction,
InvalidArgumentForNthValueFunction,
InvalidArgumentForPowerFunction,
InvalidArgumentForWidthBucketFunction,
InvalidCharacterValueForCast,
InvalidDatetimeFormat,
InvalidEscapeCharacter,
InvalidEscapeOctet,
InvalidEscapeSequence,
NonstandardUseOfEscapeCharacter,
InvalidIndicatorParameterValue,
InvalidParameterValue,
InvalidPrecedingOrFollowingSize,
InvalidRegularExpression,
InvalidRowCountInLimitClause,
InvalidRowCountInResultOffsetClause,
InvalidTablesampleArgument,
InvalidTablesampleRepeat,
InvalidTimeZoneDisplacementValue,
InvalidUseOfEscapeCharacter,
MostSpecificTypeMismatch,
NullValueNotAllowed22004,
NullValueNoIndicatorParameter,
NumericValueOutOfRange,
SequenceGeneratorLimitExceeded,
StringDataLengthMismatch,
StringDataRightTruncation22001,
SubstringError,
TrimError,
UnterminatedCString,
ZeroLengthCharacterString,
FloatingPointException,
InvalidTextRepresentation,
InvalidBinaryRepresentation,
BadCopyFileFormat,
UntranslatableCharacter,
NotAnXmlDocument,
InvalidXmlDocument,
InvalidXmlContent,
InvalidXmlComment,
InvalidXmlProcessingInstruction,
DuplicateJsonObjectKeyValue,
InvalidArgumentForSqlJsonDatetimeFunction,
InvalidJsonText,
InvalidSqlJsonSubscript,
MoreThanOneSqlJsonItem,
NoSqlJsonItem,
NonNumericSqlJsonItem,
NonUniqueKeysInAJsonObject,
SingletonSqlJsonItemRequired,
SqlJsonArrayNotFound,
SqlJsonMemberNotFound,
SqlJsonNumberNotFound,
SqlJsonObjectNotFound,
TooManyJsonArrayElements,
TooManyJsonObjectMembers,
SqlJsonScalarRequired,
IntegrityConstraintViolation,
RestrictViolation,
NotNullViolation,
ForeignKeyViolation,
UniqueViolation,
CheckViolation,
ExclusionViolation,
InvalidCursorState,
InvalidTransactionState,
ActiveSqlTransaction,
BranchTransactionAlreadyActive,
HeldCursorRequiresSameIsolationLevel,
InappropriateAccessModeForBranchTransaction,
InappropriateIsolationLevelForBranchTransaction,
NoActiveSqlTransactionForBranchTransaction,
ReadOnlySqlTransaction,
SchemaAndDataStatementMixingNotSupported,
NoActiveSqlTransaction,
InFailedSqlTransaction,
IdleInTransactionSessionTimeout,
InvalidSqlStatementName,
TriggeredDataChangeViolation,
InvalidAuthorizationSpecification,
InvalidPassword,
DependentPrivilegeDescriptorsStillExist,
DependentObjectsStillExist,
InvalidTransactionTermination,
SqlRoutineException,
FunctionExecutedNoReturnStatement,
ModifyingSqlDataNotPermitted2F002,
ProhibitedSqlStatementAttempted2F003,
ReadingSqlDataNotPermitted2F004,
InvalidCursorName,
ExternalRoutineException,
ContainingSqlNotPermitted,
ModifyingSqlDataNotPermitted38002,
ProhibitedSqlStatementAttempted38003,
ReadingSqlDataNotPermitted38004,
ExternalRoutineInvocationException,
InvalidSqlstateReturned,
NullValueNotAllowed39004,
TriggerProtocolViolated,
SrfProtocolViolated,
EventTriggerProtocolViolated,
SavepointException,
InvalidSavepointSpecification,
InvalidCatalogName,
InvalidSchemaName,
TransactionRollback,
TransactionIntegrityConstraintViolation,
SerializationFailure,
StatementCompletionUnknown,
DeadlockDetected,
SyntaxErrorOrAccessRuleViolation,
SyntaxError,
InsufficientPrivilege,
CannotCoerce,
GroupingError,
WindowingError,
InvalidRecursion,
InvalidForeignKey,
InvalidName,
NameTooLong,
ReservedName,
DatatypeMismatch,
IndeterminateDatatype,
CollationMismatch,
IndeterminateCollation,
WrongObjectType,
GeneratedAlways,
UndefinedColumn,
UndefinedFunction,
UndefinedTable,
UndefinedParameter,
UndefinedObject,
DuplicateColumn,
DuplicateCursor,
DuplicateDatabase,
DuplicateFunction,
DuplicatePreparedStatement,
DuplicateSchema,
DuplicateTable,
DuplicateAlias,
DuplicateObject,
AmbiguousColumn,
AmbiguousFunction,
AmbiguousParameter,
AmbiguousAlias,
InvalidColumnReference,
InvalidColumnDefinition,
InvalidCursorDefinition,
InvalidDatabaseDefinition,
InvalidFunctionDefinition,
InvalidPreparedStatementDefinition,
InvalidSchemaDefinition,
InvalidTableDefinition,
InvalidObjectDefinition,
WithCheckOptionViolation,
InsufficientResources,
DiskFull,
OutOfMemory53200,
TooManyConnections,
ConfigurationLimitExceeded,
ProgramLimitExceeded,
StatementTooComplex,
TooManyColumns,
TooManyArguments,
ObjectNotInPrerequisiteState,
ObjectInUse,
CantChangeRuntimeParam,
LockNotAvailable,
UnsafeNewEnumValueUsage,
OperatorIntervention,
QueryCanceled,
AdminShutdown,
CrashShutdown,
CannotConnectNow,
DatabaseDropped,
SystemError,
IoError,
UndefinedFile,
DuplicateFile,
SnapshotTooOld,
ConfigFileError,
LockFileExists,
FdwError,
FdwColumnNameNotFound,
FdwDynamicParameterValueNeeded,
FdwFunctionSequenceError,
FdwInconsistentDescriptorInformation,
FdwInvalidAttributeValue,
FdwInvalidColumnName,
FdwInvalidColumnNumber,
FdwInvalidDataType,
FdwInvalidDataTypeDescriptors,
FdwInvalidDescriptorFieldIdentifier,
FdwInvalidHandle,
FdwInvalidOptionIndex,
FdwInvalidOptionName,
FdwInvalidStringLengthOrBufferLength,
FdwInvalidStringFormat,
FdwInvalidUseOfNullPointer,
FdwTooManyHandles,
OutOfMemoryHV001,
FdwNoSchemas,
FdwOptionNameNotFound,
FdwReplyHandle,
FdwSchemaNotFound,
FdwTableNotFound,
FdwUnableToCreateExecution,
FdwUnableToCreateReply,
FdwUnableToEstablishConnection,
PlpgsqlError,
RaiseException,
NoDataFound,
TooManyRows,
AssertFailure,
InternalError,
DataCorrupted,
IndexCorrupted,
}
Expand description
Represents all possible PostgreSQL error codes as defined in Table A.1.
Each variant corresponds to a specific Condition Name
from the PostgreSQL documentation.
This enum provides a type-safe way to handle and match on specific SQLSTATE error codes.
See: https://www.postgresql.org/docs/13/errcodes-appendix.html.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SuccessfulCompletion
Code 00000
: successful_completion
Warning
Code 01000
: warning
DynamicResultSetsReturned
Code 0100C
: dynamic_result_sets_returned
ImplicitZeroBitPadding
Code 01008
: implicit_zero_bit_padding
NullValueEliminatedInSetFunction
Code 01003
: null_value_eliminated_in_set_function
PrivilegeNotGranted
Code 01007
: privilege_not_granted
PrivilegeNotRevoked
Code 01006
: privilege_not_revoked
StringDataRightTruncation01004
Code 01004
: string_data_right_truncation
DeprecatedFeature
Code 01P01
: deprecated_feature
NoData
Code 02000
: no_data
NoAdditionalDynamicResultSetsReturned
Code 02001
: no_additional_dynamic_result_sets_returned
SqlStatementNotYetComplete
Code 03000
: sql_statement_not_yet_complete
ConnectionException
Code 08000
: connection_exception
ConnectionDoesNotExist
Code 08003
: connection_does_not_exist
ConnectionFailure
Code 08006
: connection_failure
SqlclientUnableToEstablishSqlconnection
Code 08001
: sqlclient_unable_to_establish_sqlconnection
SqlserverRejectedEstablishmentOfSqlconnection
Code 08004
: sqlserver_rejected_establishment_of_sqlconnection
TransactionResolutionUnknown
Code 08007
: transaction_resolution_unknown
ProtocolViolation
Code 08P01
: protocol_violation
TriggeredActionException
Code 09000
: triggered_action_exception
FeatureNotSupported
Code 0A000
: feature_not_supported
InvalidTransactionInitiation
Code 0B000
: invalid_transaction_initiation
LocatorException
Code 0F000
: locator_exception
InvalidLocatorSpecification
Code 0F001
: invalid_locator_specification
InvalidGrantor
Code 0L000
: invalid_grantor
InvalidGrantOperation
Code 0LP01
: invalid_grant_operation
InvalidRoleSpecification
Code 0P000
: invalid_role_specification
DiagnosticsException
Code 0Z000
: diagnostics_exception
StackedDiagnosticsAccessedWithoutActiveHandler
Code 0Z002
: stacked_diagnostics_accessed_without_active_handler
CaseNotFound
Code 20000
: case_not_found
CardinalityViolation
Code 21000
: cardinality_violation
DataException
Code 22000
: data_exception
ArraySubscriptError
Code 2202E
: array_subscript_error
CharacterNotInRepertoire
Code 22021
: character_not_in_repertoire
DatetimeFieldOverflow
Code 22008
: datetime_field_overflow
DivisionByZero
Code 22012
: division_by_zero
ErrorInAssignment
Code 22005
: error_in_assignment
EscapeCharacterConflict
Code 2200B
: escape_character_conflict
IndicatorOverflow
Code 22022
: indicator_overflow
IntervalFieldOverflow
Code 22015
: interval_field_overflow
InvalidArgumentForLogarithm
Code 2201E
: invalid_argument_for_logarithm
InvalidArgumentForNtileFunction
Code 22014
: invalid_argument_for_ntile_function
InvalidArgumentForNthValueFunction
Code 22016
: invalid_argument_for_nth_value_function
InvalidArgumentForPowerFunction
Code 2201F
: invalid_argument_for_power_function
InvalidArgumentForWidthBucketFunction
Code 2201G
: invalid_argument_for_width_bucket_function
InvalidCharacterValueForCast
Code 22018
: invalid_character_value_for_cast
InvalidDatetimeFormat
Code 22007
: invalid_datetime_format
InvalidEscapeCharacter
Code 22019
: invalid_escape_character
InvalidEscapeOctet
Code 2200D
: invalid_escape_octet
InvalidEscapeSequence
Code 22025
: invalid_escape_sequence
NonstandardUseOfEscapeCharacter
Code 22P06
: nonstandard_use_of_escape_character
InvalidIndicatorParameterValue
Code 22010
: invalid_indicator_parameter_value
InvalidParameterValue
Code 22023
: invalid_parameter_value
InvalidPrecedingOrFollowingSize
Code 22013
: invalid_preceding_or_following_size
InvalidRegularExpression
Code 2201B
: invalid_regular_expression
InvalidRowCountInLimitClause
Code 2201W
: invalid_row_count_in_limit_clause
InvalidRowCountInResultOffsetClause
Code 2201X
: invalid_row_count_in_result_offset_clause
InvalidTablesampleArgument
Code 2202H
: invalid_tablesample_argument
InvalidTablesampleRepeat
Code 2202G
: invalid_tablesample_repeat
InvalidTimeZoneDisplacementValue
Code 22009
: invalid_time_zone_displacement_value
InvalidUseOfEscapeCharacter
Code 2200C
: invalid_use_of_escape_character
MostSpecificTypeMismatch
Code 2200G
: most_specific_type_mismatch
NullValueNotAllowed22004
Code 22004
: null_value_not_allowed
NullValueNoIndicatorParameter
Code 22002
: null_value_no_indicator_parameter
NumericValueOutOfRange
Code 22003
: numeric_value_out_of_range
SequenceGeneratorLimitExceeded
Code 2200H
: sequence_generator_limit_exceeded
StringDataLengthMismatch
Code 22026
: string_data_length_mismatch
StringDataRightTruncation22001
Code 22001
: string_data_right_truncation
SubstringError
Code 22011
: substring_error
TrimError
Code 22027
: trim_error
UnterminatedCString
Code 22024
: unterminated_c_string
ZeroLengthCharacterString
Code 2200F
: zero_length_character_string
FloatingPointException
Code 22P01
: floating_point_exception
InvalidTextRepresentation
Code 22P02
: invalid_text_representation
InvalidBinaryRepresentation
Code 22P03
: invalid_binary_representation
BadCopyFileFormat
Code 22P04
: bad_copy_file_format
UntranslatableCharacter
Code 22P05
: untranslatable_character
NotAnXmlDocument
Code 2200L
: not_an_xml_document
InvalidXmlDocument
Code 2200M
: invalid_xml_document
InvalidXmlContent
Code 2200N
: invalid_xml_content
InvalidXmlComment
Code 2200S
: invalid_xml_comment
InvalidXmlProcessingInstruction
Code 2200T
: invalid_xml_processing_instruction
DuplicateJsonObjectKeyValue
Code 22030
: duplicate_json_object_key_value
InvalidArgumentForSqlJsonDatetimeFunction
Code 22031
: invalid_argument_for_sql_json_datetime_function
InvalidJsonText
Code 22032
: invalid_json_text
InvalidSqlJsonSubscript
Code 22033
: invalid_sql_json_subscript
MoreThanOneSqlJsonItem
Code 22034
: more_than_one_sql_json_item
NoSqlJsonItem
Code 22035
: no_sql_json_item
NonNumericSqlJsonItem
Code 22036
: non_numeric_sql_json_item
NonUniqueKeysInAJsonObject
Code 22037
: non_unique_keys_in_a_json_object
SingletonSqlJsonItemRequired
Code 22038
: singleton_sql_json_item_required
SqlJsonArrayNotFound
Code 22039
: sql_json_array_not_found
SqlJsonMemberNotFound
Code 2203A
: sql_json_member_not_found
SqlJsonNumberNotFound
Code 2203B
: sql_json_number_not_found
SqlJsonObjectNotFound
Code 2203C
: sql_json_object_not_found
TooManyJsonArrayElements
Code 2203D
: too_many_json_array_elements
TooManyJsonObjectMembers
Code 2203E
: too_many_json_object_members
SqlJsonScalarRequired
Code 2203F
: sql_json_scalar_required
IntegrityConstraintViolation
Code 23000
: integrity_constraint_violation
RestrictViolation
Code 23001
: restrict_violation
NotNullViolation
Code 23502
: not_null_violation
ForeignKeyViolation
Code 23503
: foreign_key_violation
UniqueViolation
Code 23505
: unique_violation
CheckViolation
Code 23514
: check_violation
ExclusionViolation
Code 23P01
: exclusion_violation
InvalidCursorState
Code 24000
: invalid_cursor_state
InvalidTransactionState
Code 25000
: invalid_transaction_state
ActiveSqlTransaction
Code 25001
: active_sql_transaction
BranchTransactionAlreadyActive
Code 25002
: branch_transaction_already_active
HeldCursorRequiresSameIsolationLevel
Code 25008
: held_cursor_requires_same_isolation_level
InappropriateAccessModeForBranchTransaction
Code 25003
: inappropriate_access_mode_for_branch_transaction
InappropriateIsolationLevelForBranchTransaction
Code 25004
: inappropriate_isolation_level_for_branch_transaction
NoActiveSqlTransactionForBranchTransaction
Code 25005
: no_active_sql_transaction_for_branch_transaction
ReadOnlySqlTransaction
Code 25006
: read_only_sql_transaction
SchemaAndDataStatementMixingNotSupported
Code 25007
: schema_and_data_statement_mixing_not_supported
NoActiveSqlTransaction
Code 25P01
: no_active_sql_transaction
InFailedSqlTransaction
Code 25P02
: in_failed_sql_transaction
IdleInTransactionSessionTimeout
Code 25P03
: idle_in_transaction_session_timeout
InvalidSqlStatementName
Code 26000
: invalid_sql_statement_name
TriggeredDataChangeViolation
Code 27000
: triggered_data_change_violation
InvalidAuthorizationSpecification
Code 28000
: invalid_authorization_specification
InvalidPassword
Code 28P01
: invalid_password
DependentPrivilegeDescriptorsStillExist
Code 2B000
: dependent_privilege_descriptors_still_exist
DependentObjectsStillExist
Code 2BP01
: dependent_objects_still_exist
InvalidTransactionTermination
Code 2D000
: invalid_transaction_termination
SqlRoutineException
Code 2F000
: sql_routine_exception
FunctionExecutedNoReturnStatement
Code 2F005
: function_executed_no_return_statement
ModifyingSqlDataNotPermitted2F002
Code 2F002
: modifying_sql_data_not_permitted
ProhibitedSqlStatementAttempted2F003
Code 2F003
: prohibited_sql_statement_attempted
ReadingSqlDataNotPermitted2F004
Code 2F004
: reading_sql_data_not_permitted
InvalidCursorName
Code 34000
: invalid_cursor_name
ExternalRoutineException
Code 38000
: external_routine_exception
ContainingSqlNotPermitted
Code 38001
: containing_sql_not_permitted
ModifyingSqlDataNotPermitted38002
Code 38002
: modifying_sql_data_not_permitted
ProhibitedSqlStatementAttempted38003
Code 38003
: prohibited_sql_statement_attempted
ReadingSqlDataNotPermitted38004
Code 38004
: reading_sql_data_not_permitted
ExternalRoutineInvocationException
Code 39000
: external_routine_invocation_exception
InvalidSqlstateReturned
Code 39001
: invalid_sqlstate_returned
NullValueNotAllowed39004
Code 39004
: null_value_not_allowed
TriggerProtocolViolated
Code 39P01
: trigger_protocol_violated
SrfProtocolViolated
Code 39P02
: srf_protocol_violated
EventTriggerProtocolViolated
Code 39P03
: event_trigger_protocol_violated
SavepointException
Code 3B000
: savepoint_exception
InvalidSavepointSpecification
Code 3B001
: invalid_savepoint_specification
InvalidCatalogName
Code 3D000
: invalid_catalog_name
InvalidSchemaName
Code 3F000
: invalid_schema_name
TransactionRollback
Code 40000
: transaction_rollback
TransactionIntegrityConstraintViolation
Code 40002
: transaction_integrity_constraint_violation
SerializationFailure
Code 40001
: serialization_failure
StatementCompletionUnknown
Code 40003
: statement_completion_unknown
DeadlockDetected
Code 40P01
: deadlock_detected
SyntaxErrorOrAccessRuleViolation
Code 42000
: syntax_error_or_access_rule_violation
SyntaxError
Code 42601
: syntax_error
InsufficientPrivilege
Code 42501
: insufficient_privilege
CannotCoerce
Code 42846
: cannot_coerce
GroupingError
Code 42803
: grouping_error
WindowingError
Code 42P20
: windowing_error
InvalidRecursion
Code 42P19
: invalid_recursion
InvalidForeignKey
Code 42830
: invalid_foreign_key
InvalidName
Code 42602
: invalid_name
NameTooLong
Code 42622
: name_too_long
ReservedName
Code 42939
: reserved_name
DatatypeMismatch
Code 42804
: datatype_mismatch
IndeterminateDatatype
Code 42P18
: indeterminate_datatype
CollationMismatch
Code 42P21
: collation_mismatch
IndeterminateCollation
Code 42P22
: indeterminate_collation
WrongObjectType
Code 42809
: wrong_object_type
GeneratedAlways
Code 428C9
: generated_always
UndefinedColumn
Code 42703
: undefined_column
UndefinedFunction
Code 42883
: undefined_function
UndefinedTable
Code 42P01
: undefined_table
UndefinedParameter
Code 42P02
: undefined_parameter
UndefinedObject
Code 42704
: undefined_object
DuplicateColumn
Code 42701
: duplicate_column
DuplicateCursor
Code 42P03
: duplicate_cursor
DuplicateDatabase
Code 42P04
: duplicate_database
DuplicateFunction
Code 42723
: duplicate_function
DuplicatePreparedStatement
Code 42P05
: duplicate_prepared_statement
DuplicateSchema
Code 42P06
: duplicate_schema
DuplicateTable
Code 42P07
: duplicate_table
DuplicateAlias
Code 42712
: duplicate_alias
DuplicateObject
Code 42710
: duplicate_object
AmbiguousColumn
Code 42702
: ambiguous_column
AmbiguousFunction
Code 42725
: ambiguous_function
AmbiguousParameter
Code 42P08
: ambiguous_parameter
AmbiguousAlias
Code 42P09
: ambiguous_alias
InvalidColumnReference
Code 42P10
: invalid_column_reference
InvalidColumnDefinition
Code 42611
: invalid_column_definition
InvalidCursorDefinition
Code 42P11
: invalid_cursor_definition
InvalidDatabaseDefinition
Code 42P12
: invalid_database_definition
InvalidFunctionDefinition
Code 42P13
: invalid_function_definition
InvalidPreparedStatementDefinition
Code 42P14
: invalid_prepared_statement_definition
InvalidSchemaDefinition
Code 42P15
: invalid_schema_definition
InvalidTableDefinition
Code 42P16
: invalid_table_definition
InvalidObjectDefinition
Code 42P17
: invalid_object_definition
WithCheckOptionViolation
Code 44000
: with_check_option_violation
InsufficientResources
Code 53000
: insufficient_resources
DiskFull
Code 53100
: disk_full
OutOfMemory53200
Code 53200
: out_of_memory
TooManyConnections
Code 53300
: too_many_connections
ConfigurationLimitExceeded
Code 53400
: configuration_limit_exceeded
ProgramLimitExceeded
Code 54000
: program_limit_exceeded
StatementTooComplex
Code 54001
: statement_too_complex
TooManyColumns
Code 54011
: too_many_columns
TooManyArguments
Code 54023
: too_many_arguments
ObjectNotInPrerequisiteState
Code 55000
: object_not_in_prerequisite_state
ObjectInUse
Code 55006
: object_in_use
CantChangeRuntimeParam
Code 55P02
: cant_change_runtime_param
LockNotAvailable
Code 55P03
: lock_not_available
UnsafeNewEnumValueUsage
Code 55P04
: unsafe_new_enum_value_usage
OperatorIntervention
Code 57000
: operator_intervention
QueryCanceled
Code 57014
: query_canceled
AdminShutdown
Code 57P01
: admin_shutdown
CrashShutdown
Code 57P02
: crash_shutdown
CannotConnectNow
Code 57P03
: cannot_connect_now
DatabaseDropped
Code 57P04
: database_dropped
SystemError
Code 58000
: system_error
IoError
Code 58030
: io_error
UndefinedFile
Code 58P01
: undefined_file
DuplicateFile
Code 58P02
: duplicate_file
SnapshotTooOld
Code 72000
: snapshot_too_old
ConfigFileError
Code F0000
: config_file_error
LockFileExists
Code F0001
: lock_file_exists
FdwError
Code HV000
: fdw_error
FdwColumnNameNotFound
Code HV005
: fdw_column_name_not_found
FdwDynamicParameterValueNeeded
Code HV002
: fdw_dynamic_parameter_value_needed
FdwFunctionSequenceError
Code HV010
: fdw_function_sequence_error
FdwInconsistentDescriptorInformation
Code HV021
: fdw_inconsistent_descriptor_information
FdwInvalidAttributeValue
Code HV024
: fdw_invalid_attribute_value
FdwInvalidColumnName
Code HV007
: fdw_invalid_column_name
FdwInvalidColumnNumber
Code HV008
: fdw_invalid_column_number
FdwInvalidDataType
Code HV004
: fdw_invalid_data_type
FdwInvalidDataTypeDescriptors
Code HV006
: fdw_invalid_data_type_descriptors
FdwInvalidDescriptorFieldIdentifier
Code HV091
: fdw_invalid_descriptor_field_identifier
FdwInvalidHandle
Code HV00B
: fdw_invalid_handle
FdwInvalidOptionIndex
Code HV00C
: fdw_invalid_option_index
FdwInvalidOptionName
Code HV00D
: fdw_invalid_option_name
FdwInvalidStringLengthOrBufferLength
Code HV090
: fdw_invalid_string_length_or_buffer_length
FdwInvalidStringFormat
Code HV00A
: fdw_invalid_string_format
FdwInvalidUseOfNullPointer
Code HV009
: fdw_invalid_use_of_null_pointer
FdwTooManyHandles
Code HV014
: fdw_too_many_handles
OutOfMemoryHV001
Code HV001
: fdw_out_of_memory
FdwNoSchemas
Code HV00P
: fdw_no_schemas
FdwOptionNameNotFound
Code HV00J
: fdw_option_name_not_found
FdwReplyHandle
Code HV00K
: fdw_reply_handle
FdwSchemaNotFound
Code HV00Q
: fdw_schema_not_found
FdwTableNotFound
Code HV00R
: fdw_table_not_found
FdwUnableToCreateExecution
Code HV00L
: fdw_unable_to_create_execution
FdwUnableToCreateReply
Code HV00M
: fdw_unable_to_create_reply
FdwUnableToEstablishConnection
Code HV00N
: fdw_unable_to_establish_connection
PlpgsqlError
Code P0000
: plpgsql_error
RaiseException
Code P0001
: raise_exception
NoDataFound
Code P0002
: no_data_found
TooManyRows
Code P0003
: too_many_rows
AssertFailure
Code P0004
: assert_failure
InternalError
Code XX000
: internal_error
DataCorrupted
Code XX001
: data_corrupted
IndexCorrupted
Code XX002
: index_corrupted
Implementations§
Source§impl PostgresErrorCode
impl PostgresErrorCode
Sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Returns true if the error code is a success.
Sourcepub fn is_warning(self) -> bool
pub fn is_warning(self) -> bool
Returns true if the error code is a warning.
Trait Implementations§
Source§impl Clone for PostgresErrorCode
impl Clone for PostgresErrorCode
Source§fn clone(&self) -> PostgresErrorCode
fn clone(&self) -> PostgresErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PostgresErrorCode
impl Debug for PostgresErrorCode
Source§impl<'de> Deserialize<'de> for PostgresErrorCode
impl<'de> Deserialize<'de> for PostgresErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for PostgresErrorCode
impl Hash for PostgresErrorCode
Source§impl Ord for PostgresErrorCode
impl Ord for PostgresErrorCode
Source§fn cmp(&self, other: &PostgresErrorCode) -> Ordering
fn cmp(&self, other: &PostgresErrorCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PostgresErrorCode
impl PartialEq for PostgresErrorCode
Source§impl PartialOrd for PostgresErrorCode
impl PartialOrd for PostgresErrorCode
Source§impl Serialize for PostgresErrorCode
impl Serialize for PostgresErrorCode
impl Copy for PostgresErrorCode
impl Eq for PostgresErrorCode
impl StructuralPartialEq for PostgresErrorCode
Auto Trait Implementations§
impl Freeze for PostgresErrorCode
impl RefUnwindSafe for PostgresErrorCode
impl Send for PostgresErrorCode
impl Sync for PostgresErrorCode
impl Unpin for PostgresErrorCode
impl UnwindSafe for PostgresErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.