#[non_exhaustive]
pub enum ErrorCode {
Show 24 variants
InternalMalfunction,
PermissionDenied,
OperationAborted,
DatabaseBusy,
DatabaseLocked,
OutOfMemory,
ReadOnly,
OperationInterrupted,
SystemIoFailure,
DatabaseCorrupt,
NotFound,
DiskFull,
CannotOpen,
FileLockingProtocolFailed,
SchemaChanged,
TooBig,
ConstraintViolation,
TypeMismatch,
ApiMisuse,
NoLargeFileSupport,
AuthorizationForStatementDenied,
ParameterOutOfRange,
NotADatabase,
Unknown,
}
Expand description
Error Codes
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InternalMalfunction
Internal logic error in SQLite
PermissionDenied
Access permission denied
OperationAborted
Callback routine requested an abort
DatabaseBusy
The database file is locked
DatabaseLocked
A table in the database is locked
OutOfMemory
A malloc() failed
ReadOnly
Attempt to write a readonly database
OperationInterrupted
Operation terminated by sqlite3_interrupt()
SystemIoFailure
Some kind of disk I/O error occurred
DatabaseCorrupt
The database disk image is malformed
NotFound
Unknown opcode in sqlite3_file_control()
DiskFull
Insertion failed because database is full
CannotOpen
Unable to open the database file
FileLockingProtocolFailed
Database lock protocol error
SchemaChanged
The database schema changed
TooBig
String or BLOB exceeds size limit
ConstraintViolation
Abort due to constraint violation
TypeMismatch
Data type mismatch
ApiMisuse
Library used incorrectly
NoLargeFileSupport
Uses OS features not supported on host
AuthorizationForStatementDenied
Authorization denied
ParameterOutOfRange
2nd parameter to sqlite3_bind out of range
NotADatabase
File opened that is not a database file
Unknown
SQL error or missing database