[−]Struct amadeus::source::postgres::_internal::error::DbError
A Postgres error or notice.
Fields
severity: String
The field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a localized translation of one of these.
parsed_severity: Option<Severity>
A parsed, nonlocalized version of severity
. (PostgreSQL 9.6+)
code: SqlState
The SQLSTATE code for the error.
message: String
The primary human-readable error message. This should be accurate but terse (typically one line).
detail: Option<String>
An optional secondary error message carrying more detail about the problem. Might run to multiple lines.
hint: Option<String>
An optional suggestion what to do about the problem. This is intended to differ from Detail in that it offers advice (potentially inappropriate) rather than hard facts. Might run to multiple lines.
position: Option<ErrorPosition>
An optional error cursor position into either the original query string or an internally generated query.
where_: Option<String>
An indication of the context in which the error occurred. Presently this includes a call stack traceback of active procedural language functions and internally-generated queries. The trace is one entry per line, most recent first.
schema: Option<String>
If the error was associated with a specific database object, the name of the schema containing that object, if any. (PostgreSQL 9.3+)
table: Option<String>
If the error was associated with a specific table, the name of the table. (Refer to the schema name field for the name of the table's schema.) (PostgreSQL 9.3+)
column: Option<String>
If the error was associated with a specific table column, the name of the column. (Refer to the schema and table name fields to identify the table.) (PostgreSQL 9.3+)
datatype: Option<String>
If the error was associated with a specific data type, the name of the data type. (Refer to the schema name field for the name of the data type's schema.) (PostgreSQL 9.3+)
constraint: Option<String>
If the error was associated with a specific constraint, the name of the constraint. Refer to fields listed above for the associated table or domain. (For this purpose, indexes are treated as constraints, even if they weren't created with constraint syntax.) (PostgreSQL 9.3+)
file: Option<String>
The file name of the source-code location where the error was reported.
line: Option<u32>
The line number of the source-code location where the error was reported.
routine: Option<String>
The name of the source-code routine reporting the error.
Trait Implementations
impl Clone for DbError
fn clone(&self) -> DbError
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for DbError
impl Error for DbError
fn description(&self) -> &str
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl Debug for DbError
impl Display for DbError
impl PartialEq<DbError> for DbError
Auto Trait Implementations
impl Send for DbError
impl Sync for DbError
impl Unpin for DbError
impl UnwindSafe for DbError
impl RefUnwindSafe for DbError
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<A, B> Downcast<A> for B where
A: DowncastImpl<B>,
[src]
A: DowncastImpl<B>,
fn downcast(self) -> Result<A, DowncastError>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> IntersectPlusUnionIsPlus for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Type for T
[src]
const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.
fn meta(&self) -> <T as Type>::Meta
[src]
fn data(&self) -> *const ()
[src]
fn data_mut(&mut self) -> *mut ()
[src]
unsafe fn uninitialized_box(<T as Type>::Meta) -> Box<T>
[src]
fn meta_type(&self) -> MetaType
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
default fn meta(&self) -> <T as Type>::Meta
[src]
default fn data(&self) -> *const ()
[src]
default fn data_mut(&mut self) -> *mut ()
[src]
unsafe default fn uninitialized_box(t: <T as Type>::Meta) -> Box<T>
[src]
const METATYPE: MetaType
[src]
type Meta: 'static
fn meta_type(&self) -> MetaType
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn backtrace(&self) -> Option<&Backtrace>
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
impl<T> AsFail for T where
T: Fail,
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,