pub enum PostgresErrorCode {
Show 31 variants
NotNullViolation,
ForeignKeyViolation,
UniqueViolation,
ReadOnlySqlTransaction,
UndefinedFunction,
UndefinedTable,
InfiniteRecursion,
InsufficientPrivilege,
ConfigLimitExceeded,
RaiseException,
ConnectionException,
TriggeredActionException,
InvalidGrantor,
InvalidRoleSpecification,
InvalidTransactionState,
InvalidAuthorizationSpecification,
InvalidTransactionTermination,
ExternalRoutineException,
ExternalRoutineInvocationException,
SavepointException,
TransactionRollback,
InsufficientResources,
ProgramLimitExceeded,
ObjectNotInPrerequisiteState,
OperatorIntervention,
SystemError,
ConfigFileError,
FdwError,
PlpgsqlError,
InternalError,
Other(String),
}Expand description
Enum representing PostgreSQL error codes.
Variants§
NotNullViolation
ForeignKeyViolation
UniqueViolation
ReadOnlySqlTransaction
UndefinedFunction
UndefinedTable
InfiniteRecursion
InsufficientPrivilege
ConfigLimitExceeded
RaiseException
ConnectionException
TriggeredActionException
InvalidGrantor
InvalidRoleSpecification
InvalidTransactionState
InvalidAuthorizationSpecification
InvalidTransactionTermination
ExternalRoutineException
ExternalRoutineInvocationException
SavepointException
TransactionRollback
InsufficientResources
ProgramLimitExceeded
ObjectNotInPrerequisiteState
OperatorIntervention
SystemError
ConfigFileError
FdwError
PlpgsqlError
InternalError
Other(String)
Implementations§
Trait Implementations§
Source§impl Clone for PostgresErrorCode
impl Clone for PostgresErrorCode
Source§fn clone(&self) -> PostgresErrorCode
fn clone(&self) -> PostgresErrorCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresErrorCode
impl Debug 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,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PostgresErrorCode
impl PartialEq for PostgresErrorCode
Source§impl PartialOrd for PostgresErrorCode
impl PartialOrd 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)