Enum libsqlite3_sys::ErrorCode
source · #[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
Trait Implementations§
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)