forked from Faithlife/System.Data.SQLite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLiteErrorCode.cs
More file actions
177 lines (145 loc) · 3.34 KB
/
SQLiteErrorCode.cs
File metadata and controls
177 lines (145 loc) · 3.34 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
namespace System.Data.SQLite
{
/// <summary>
/// SQLite error codes. Actually, this enumeration represents a return code,
/// which may also indicate success in one of several ways (e.g. SQLITE_OK,
/// SQLITE_ROW, and SQLITE_DONE). Therefore, the name of this enumeration is
/// something of a misnomer.
/// </summary>
public enum SQLiteErrorCode
{
/// <summary>
/// The error code is unknown. This error code
/// is only used by the managed wrapper itself.
/// </summary>
Unknown = -1,
/// <summary>
/// Successful result
/// </summary>
Ok /* 0 */,
/// <summary>
/// SQL error or missing database
/// </summary>
Error /* 1 */,
/// <summary>
/// Internal logic error in SQLite
/// </summary>
Internal /* 2 */,
/// <summary>
/// Access permission denied
/// </summary>
Perm /* 3 */,
/// <summary>
/// Callback routine requested an abort
/// </summary>
Abort /* 4 */,
/// <summary>
/// The database file is locked
/// </summary>
Busy /* 5 */,
/// <summary>
/// A table in the database is locked
/// </summary>
Locked /* 6 */,
/// <summary>
/// A malloc() failed
/// </summary>
NoMem /* 7 */,
/// <summary>
/// Attempt to write a readonly database
/// </summary>
ReadOnly /* 8 */,
/// <summary>
/// Operation terminated by sqlite3_interrupt()
/// </summary>
Interrupt /* 9 */,
/// <summary>
/// Some kind of disk I/O error occurred
/// </summary>
IoErr /* 10 */,
/// <summary>
/// The database disk image is malformed
/// </summary>
Corrupt /* 11 */,
/// <summary>
/// Unknown opcode in sqlite3_file_control()
/// </summary>
NotFound /* 12 */,
/// <summary>
/// Insertion failed because database is full
/// </summary>
Full /* 13 */,
/// <summary>
/// Unable to open the database file
/// </summary>
CantOpen /* 14 */,
/// <summary>
/// Database lock protocol error
/// </summary>
Protocol /* 15 */,
/// <summary>
/// Database is empty
/// </summary>
Empty /* 16 */,
/// <summary>
/// The database schema changed
/// </summary>
Schema /* 17 */,
/// <summary>
/// String or BLOB exceeds size limit
/// </summary>
TooBig /* 18 */,
/// <summary>
/// Abort due to constraint violation
/// </summary>
Constraint /* 19 */,
/// <summary>
/// Data type mismatch
/// </summary>
Mismatch /* 20 */,
/// <summary>
/// Library used incorrectly
/// </summary>
Misuse /* 21 */,
/// <summary>
/// Uses OS features not supported on host
/// </summary>
NoLfs /* 22 */,
/// <summary>
/// Authorization denied
/// </summary>
Auth /* 23 */,
/// <summary>
/// Auxiliary database format error
/// </summary>
Format /* 24 */,
/// <summary>
/// 2nd parameter to sqlite3_bind out of range
/// </summary>
Range /* 25 */,
/// <summary>
/// File opened that is not a database file
/// </summary>
NotADb /* 26 */,
/// <summary>
/// Notifications from sqlite3_log()
/// </summary>
Notice /* 27 */,
/// <summary>
/// Warnings from sqlite3_log()
/// </summary>
Warning /* 28 */,
/// <summary>
/// sqlite3_step() has another row ready
/// </summary>
Row = 100,
/// <summary>
/// sqlite3_step() has finished executing
/// </summary>
Done, /* 101 */
/// <summary>
/// Used to mask off extended result codes
/// </summary>
NonExtendedMask = 0xFF
}
}