Enum rusqlite::Error [] [src]

pub enum Error {
    SqliteFailure(Error, Option<String>),
    SqliteSingleThreadedMode,
    FromSqlConversionFailure(Box<Error + Send + Sync>),
    Utf8Error(Utf8Error),
    NulError(NulError),
    InvalidParameterName(String),
    InvalidPath(PathBuf),
    ExecuteReturnedResults,
    QueryReturnedNoRows,
    GetFromStaleRow,
    InvalidColumnIndex(c_int),
    InvalidColumnType,
}

Enum listing possible errors from rusqlite.

Variants

SqliteFailure

An error from an underlying SQLite call.

SqliteSingleThreadedMode

Error reported when attempting to open a connection when SQLite was configured to allow single-threaded use only.

FromSqlConversionFailure

An error case available for implementors of the FromSql trait.

Utf8Error

Error converting a string to UTF-8.

NulError

Error converting a string to a C-compatible string because it contained an embedded nul.

InvalidParameterName

Error when using SQL named parameters and passing a parameter name not present in the SQL.

InvalidPath

Error converting a file path to a string.

ExecuteReturnedResults

Error returned when an execute call returns rowss.

QueryReturnedNoRows

Error when a query that was expected to return at least one row (e.g., for query_row) did not return any.

GetFromStaleRow

Error when trying to access a Row after stepping past it. See the discussion on the Rows type for more details.

InvalidColumnIndex

Error when the value of a particular column is requested, but the index is out of range for the statement.

InvalidColumnType

Error when the value of a particular column is requested, but the type of the result in that column cannot be converted to the requested Rust type.

Trait Implementations

impl From<Utf8Error> for Error

fn from(err: Utf8Error) -> Error

impl From<NulError> for Error

fn from(err: NulError) -> Error

impl Display for Error

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

impl Error for Error

fn description(&self) -> &str

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

Derived Implementations

impl Debug for Error

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