#[repr(i32)]pub enum ErrorCode {
Show 31 variants
Ok = 0,
Error = 1,
Internal = 2,
Perm = 3,
Abort = 4,
Busy = 5,
Locked = 6,
NoMem = 7,
ReadOnly = 8,
Interrupt = 9,
IoErr = 10,
Corrupt = 11,
NotFound = 12,
Full = 13,
CantOpen = 14,
Protocol = 15,
Empty = 16,
Schema = 17,
TooBig = 18,
Constraint = 19,
Mismatch = 20,
Misuse = 21,
NoLfs = 22,
Auth = 23,
Format = 24,
Range = 25,
NotADb = 26,
Notice = 27,
Warning = 28,
Row = 100,
Done = 101,
}Expand description
SQLite result/error codes for wire protocol compatibility.
These match the numeric values from C SQLite’s sqlite3.h.
Variants§
Ok = 0
Successful result.
Error = 1
Generic error.
Internal = 2
Internal logic error.
Perm = 3
Access permission denied.
Abort = 4
Callback requested abort.
Busy = 5
Database file is locked.
Locked = 6
Table is locked.
NoMem = 7
Out of memory.
ReadOnly = 8
Attempt to write a read-only database.
Interrupt = 9
Interrupted by sqlite3_interrupt().
IoErr = 10
Disk I/O error.
Corrupt = 11
Database disk image is malformed.
NotFound = 12
Not found (internal).
Full = 13
Database or disk is full.
CantOpen = 14
Unable to open database file.
Protocol = 15
Locking protocol error.
Empty = 16
(Not used).
Schema = 17
Database schema has changed.
TooBig = 18
String or BLOB exceeds size limit.
Constraint = 19
Constraint violation.
Mismatch = 20
Data type mismatch.
Misuse = 21
Library used incorrectly.
NoLfs = 22
OS feature not available.
Auth = 23
Authorization denied.
Format = 24
Not used.
Range = 25
Bind parameter out of range.
NotADb = 26
Not a database file.
Notice = 27
Notification (not an error).
Warning = 28
Warning (not an error).
Row = 100
sqlite3_step() has another row ready.
Done = 101
sqlite3_step() has finished executing.