Struct rustorm::database::DbError [] [src]

pub struct DbError {
    pub code: Option<SqlState>,
    // some fields omitted
}

Fields

code

Methods

impl DbError

rough implementation of Database errors

fn new(description: &str) -> Self

fn with_code(description: &str, code: SqlState) -> Self

Trait Implementations

impl Error for DbError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for DbError

fn fmt(&self, fmt: &mut Formatter) -> Result

impl From<Error> for DbError

fn from(err: Error) -> DbError

Derived Implementations

impl Debug for DbError

fn fmt(&self, __arg_0: &mut Formatter) -> Result