pub enum PgMetaError {
Connect(Error),
Tls(Error),
Query(Error),
Write {
operation: &'static str,
source: Error,
},
Transaction(Error),
OAuth {
operation: &'static str,
source: LibpqOAuthError,
},
Decode {
field: &'static str,
value: String,
message: String,
},
}Expand description
Errors returned by PostgreSQL metadata adapters and repositories.
Variants§
Implementations§
Source§impl PgMetaError
impl PgMetaError
Sourcepub fn operational_category(&self) -> FailureCategory
pub fn operational_category(&self) -> FailureCategory
Classifies adapter evidence without formatting provider text or SQL.
Returns whether PostgreSQL identified this as an authorization failure.
Trait Implementations§
Source§impl Debug for PgMetaError
impl Debug for PgMetaError
Source§impl Display for PgMetaError
impl Display for PgMetaError
Source§impl Error for PgMetaError
impl Error for PgMetaError
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 Freeze for PgMetaError
impl !RefUnwindSafe for PgMetaError
impl Send for PgMetaError
impl Sync for PgMetaError
impl Unpin for PgMetaError
impl UnsafeUnpin for PgMetaError
impl !UnwindSafe for PgMetaError
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