Enum rusqlite::Error[][src]

pub enum Error {
    SqliteFailure(ErrorOption<String>),
    SqliteSingleThreadedMode,
    FromSqlConversionFailure(usizeTypeBox<Error + Send + Sync>),
    IntegralValueOutOfRange(usizei64),
    Utf8Error(Utf8Error),
    NulError(NulError),
    InvalidParameterName(String),
    InvalidPath(PathBuf),
    ExecuteReturnedResults,
    QueryReturnedNoRows,
    InvalidColumnIndex(usize),
    InvalidColumnName(String),
    InvalidColumnType(usizeType),
    StatementChangedRows(usize),
    InvalidFunctionParameterType(usizeType),
    InvalidFilterParameterType(usizeType),
    UserFunctionError(Box<Error + Send + Sync>),
    ToSqlConversionFailure(Box<Error + Send + Sync>),
    InvalidQuery,
    ModuleError(String),
}

Enum listing possible errors from rusqlite.

Variants

An error from an underlying SQLite call.

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

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

Error when SQLite gives us an integral value outside the range of the requested type (e.g., trying to get the value 1000 into a u8). The associated usize is the column index, and the associated i64 is the value returned by SQLite.

Error converting a string to UTF-8.

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

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

Error converting a file path to a string.

Error returned when an execute call returns rows.

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

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

Error when the value of a named column is requested, but no column matches the name for the statement.

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.

Error when a query that was expected to insert one row did not insert any or insert many.

Error returned by functions::Context::get when the function argument cannot be converted to the requested type.

Error returned by vtab::Values::get when the filter argument cannot be converted to the requested type.

An error case available for implementors of custom user functions (e.g., create_scalar_function).

Error available for the implementors of the ToSql trait.

Error when the SQL is not a SELECT, is not read-only.

An error case available for implementors of custom modules (e.g., create_module).

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Utf8Error> for Error
[src]

Performs the conversion.

impl From<NulError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error