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 | |
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 | |
QueryReturnedNoRows | Error when a query that was expected to return at least one row (e.g., for | |
GetFromStaleRow | Error when trying to access a | |
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[src]
impl From<NulError> for Error[src]
impl Display for Error[src]
impl Error for Error[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any.