/* ** Community.CsharpSqlite.SQLiteClient.SqliteError ** ** Author: Noah Hart ** ** The author disclaims copyright to this source code. ************************************************************************* ** $Header$ ************************************************************************* */ using System; using System.Security; using System.Runtime.InteropServices; using System.Text; namespace Community.CsharpSqlite.SQLiteClient { /// /// Represents the return values for sqlite_exec() and sqlite_step() /// internal enum SqliteError : int { /// Successful result OK = 0, /// SQL error or missing database ERROR = 1, /// An internal logic error in SQLite INTERNAL = 2, /// Access permission denied PERM = 3, /// Callback routine requested an abort ABORT = 4, /// The database file is locked BUSY = 5, /// A table in the database is locked LOCKED = 6, /// A malloc() failed NOMEM = 7, /// Attempt to write a readonly database READONLY = 8, /// Operation terminated by public const int interrupt() INTERRUPT = 9, /// Some kind of disk I/O error occurred IOERR = 10, /// The database disk image is malformed CORRUPT = 11, /// (Internal Only) Table or record not found NOTFOUND = 12, /// Insertion failed because database is full FULL = 13, /// Unable to open the database file CANTOPEN = 14, /// Database lock protocol error PROTOCOL = 15, /// (Internal Only) Database table is empty EMPTY = 16, /// The database schema changed SCHEMA = 17, /// Too much data for one row of a table TOOBIG = 18, /// Abort due to contraint violation CONSTRAINT = 19, /// Data type mismatch MISMATCH = 20, /// Library used incorrectly MISUSE = 21, /// Uses OS features not supported on host NOLFS = 22, /// Authorization denied AUTH = 23, /// Auxiliary database format error FORMAT = 24, /// 2nd parameter to sqlite_bind out of range RANGE = 25, /// File opened that is not a database file NOTADB = 26, /// sqlite_step() has another row ready ROW = 100, /// sqlite_step() has finished executing DONE = 101 } }