Struct rusqlite::SqliteError [] [src]

pub struct SqliteError {
    pub code: c_int,
    pub message: String,
}

Encompasses an error result from a call to the SQLite C API.

Fields

code: c_int

The error code returned by a SQLite C API call. See SQLite Result Codes for details.

message: String

The error message provided by sqlite3_errmsg, if possible, or a generic error message based on code otherwise.

Trait Implementations

impl PartialEq for SqliteError
[src]

fn eq(&self, __arg_0: &SqliteError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &SqliteError) -> bool

This method tests for !=.

impl Debug for SqliteError
[src]

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

Formats the value using the given formatter.

impl Display for SqliteError
[src]

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

Formats the value using the given formatter.

impl Error for SqliteError
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

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