pub enum PgError {
Postgres(Error),
TypeConversion(String),
Tls(String),
ConstraintViolation {
constraint: String,
detail: String,
},
Timeout(String),
PoolExhausted(String),
Copy(String),
Notify(String),
Connection(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).
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for PgError
impl !UnwindSafe for PgError
impl Freeze for PgError
impl Send for PgError
impl Sync for PgError
impl Unpin for PgError
impl UnsafeUnpin for PgError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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