forked from weimingtom/CsharpSQLite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLiteError.cs
More file actions
executable file
·82 lines (81 loc) · 2.51 KB
/
SQLiteError.cs
File metadata and controls
executable file
·82 lines (81 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
** System.Data.SQLite.SqliteError
**
** Author: Noah Hart <[email protected]>
**
** The author disclaims copyright to this source code.
*************************************************************************
** $Header$
*************************************************************************
*/
using System;
using System.Security;
using System.Runtime.InteropServices;
using System.Text;
namespace System.Data.SQLite
{
/// <summary>
/// Represents the return values for sqlite_exec() and sqlite_step()
/// </summary>
internal enum SQLiteError : int
{
/// <value>Successful result</value>
OK = 0,
/// <value>SQL error or missing database</value>
ERROR = 1,
/// <value>An internal logic error in SQLite</value>
INTERNAL = 2,
/// <value>Access permission denied</value>
PERM = 3,
/// <value>Callback routine requested an abort</value>
ABORT = 4,
/// <value>The database file is locked</value>
BUSY = 5,
/// <value>A table in the database is locked</value>
LOCKED = 6,
/// <value>A malloc() failed</value>
NOMEM = 7,
/// <value>Attempt to write a readonly database</value>
READONLY = 8,
/// <value>Operation terminated by public const int interrupt()</value>
INTERRUPT = 9,
/// <value>Some kind of disk I/O error occurred</value>
IOERR = 10,
/// <value>The database disk image is malformed</value>
CORRUPT = 11,
/// <value>(Internal Only) Table or record not found</value>
NOTFOUND = 12,
/// <value>Insertion failed because database is full</value>
FULL = 13,
/// <value>Unable to open the database file</value>
CANTOPEN = 14,
/// <value>Database lock protocol error</value>
PROTOCOL = 15,
/// <value>(Internal Only) Database table is empty</value>
EMPTY = 16,
/// <value>The database schema changed</value>
SCHEMA = 17,
/// <value>Too much data for one row of a table</value>
TOOBIG = 18,
/// <value>Abort due to contraint violation</value>
CONSTRAINT = 19,
/// <value>Data type mismatch</value>
MISMATCH = 20,
/// <value>Library used incorrectly</value>
MISUSE = 21,
/// <value>Uses OS features not supported on host</value>
NOLFS = 22,
/// <value>Authorization denied</value>
AUTH = 23,
/// <value>Auxiliary database format error</value>
FORMAT = 24,
/// <value>2nd parameter to sqlite_bind out of range</value>
RANGE = 25,
/// <value>File opened that is not a database file</value>
NOTADB = 26,
/// <value>sqlite_step() has another row ready</value>
ROW = 100,
/// <value>sqlite_step() has finished executing</value>
DONE = 101
}
}