pub enum PostgresError {
ConnectionError(String),
QueryError(String),
DatabaseCreationError(String),
DatabaseDropError(String),
TransactionError(String),
ConfigError(String),
PoolCreationError(String),
Other(String),
}
Expand description
Error type for PostgreSQL operations
Variants§
ConnectionError(String)
Error connecting to the database
QueryError(String)
Error executing a query
DatabaseCreationError(String)
Error creating a database
DatabaseDropError(String)
Error dropping a database
TransactionError(String)
Error during transaction operations
ConfigError(String)
Error from configuration
PoolCreationError(String)
Error creating a pool
Other(String)
Any other error
Trait Implementations§
Source§impl Clone for PostgresError
impl Clone for PostgresError
Source§fn clone(&self) -> PostgresError
fn clone(&self) -> PostgresError
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 PostgresError
impl Debug for PostgresError
Source§impl Display for PostgresError
impl Display for PostgresError
Source§impl Error for PostgresError
impl Error for PostgresError
1.30.0 · 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()
Source§impl From<&str> for PostgresError
impl From<&str> for PostgresError
Source§impl From<Error> for PostgresError
impl From<Error> for PostgresError
Auto Trait Implementations§
impl Freeze for PostgresError
impl RefUnwindSafe for PostgresError
impl Send for PostgresError
impl Sync for PostgresError
impl Unpin for PostgresError
impl UnwindSafe for PostgresError
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