[][src]Trait sqlx::error::DatabaseError

pub trait DatabaseError: Error + Send + Sync {
    fn message(&self) -> &str;

    fn code(&self) -> Option<&str> { ... }
fn details(&self) -> Option<&str> { ... }
fn hint(&self) -> Option<&str> { ... }
fn table_name(&self) -> Option<&str> { ... }
fn column_name(&self) -> Option<&str> { ... }
fn constraint_name(&self) -> Option<&str> { ... } }

An error that was returned by the database.

Required methods

fn message(&self) -> &str

The primary, human-readable error message.

Loading content...

Provided methods

fn code(&self) -> Option<&str>

The (SQLSTATE) code for the error.

fn details(&self) -> Option<&str>

fn hint(&self) -> Option<&str>

fn table_name(&self) -> Option<&str>

fn column_name(&self) -> Option<&str>

fn constraint_name(&self) -> Option<&str>

Loading content...

Implementors

impl DatabaseError for MySqlDatabaseError[src]

impl DatabaseError for PgDatabaseError[src]

Loading content...