pub enum PgError {
Postgres(Error),
TypeConversion(String),
Tls(String),
ConstraintViolation {
constraint: String,
detail: String,
},
Timeout(String),
PoolExhausted(String),
Copy(String),
Notify(String),
Connection(String),
Replication(String),
Protocol(String),
}Expand description
Errors that can arise within the oxisql-postgres backend.
This is a backend-private type. Public API surfaces translate these errors
into oxisql_core::OxiSqlError.
Variants§
Postgres(Error)
Error during connection or wire-protocol communication.
TypeConversion(String)
A column value could not be mapped to the requested OxiSQL type.
Tls(String)
TLS setup failed.
ConstraintViolation
A unique/foreign-key/check constraint was violated.
Fields
Timeout(String)
The operation timed out.
PoolExhausted(String)
The connection pool is exhausted.
Copy(String)
A COPY IN or COPY OUT protocol error.
Notify(String)
A LISTEN/NOTIFY error (invalid channel name or unsupported connection type).
Connection(String)
A connection-level error (e.g. cancel request failed).
Replication(String)
A replication-protocol error (slot management, negotiation, or unexpected server state).
Protocol(String)
A malformed or truncated wire-protocol message was received (decoder bounds-check failure).
Trait Implementations§
Source§impl Error for PgError
impl Error for PgError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()