[]Struct c3p0_pool_pg::r2d2::postgres::error::DbError

pub struct DbError {
    pub severity: String,
    pub parsed_severity: Option<Severity>,
    pub code: SqlState,
    pub message: String,
    pub detail: Option<String>,
    pub hint: Option<String>,
    pub position: Option<ErrorPosition>,
    pub where_: Option<String>,
    pub schema: Option<String>,
    pub table: Option<String>,
    pub column: Option<String>,
    pub datatype: Option<String>,
    pub constraint: Option<String>,
    pub file: Option<String>,
    pub line: Option<u32>,
    pub routine: Option<String>,
    // some fields omitted
}

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 Debug for DbError

impl Error for DbError

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

impl Eq for DbError

impl Display for DbError

impl Clone for DbError

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<DbError> for DbError

Auto Trait Implementations

impl Unpin for DbError

impl Send for DbError

impl Sync for DbError

impl RefUnwindSafe for DbError

impl UnwindSafe for DbError

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self