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 """Exceptions from the MySQL client API.
30
31 These are all errors that the client-side of the MySQL API may generate.
32 """
33
34 __version__ = '$Revision: 1.3 $'
35
36 from mysql.exceptions.base import MySQL_Error
37
38
40
41 """An unknown error occurred."""
42
44
45 """Failed to create a Unix socket."""
46
48
49 """Failed to connect to the local MySQL server."""
50
52
53 """Failed to connect to the MySQL server."""
54
56
57 """Failed to create an IP socket."""
58
60
61 """Failed to find the IP address for the hostname."""
62
64
65 """MySQL server has gone away."""
66
68
69 """A protocol mismatch resulted from attempting to connect to a server with
70 a client library that uses a different protocol version. This can happen if
71 you use a very old client library to connect to a new server that wasn't
72 started with the --old-protocol option.
73 """
74
76
77 """MySQL client ran out of memory."""
78
80
81 """Wrong host info."""
82
84
85 """Localhost via UNIX socket."""
86
88
89 """TCP connection error."""
90
92
93 """Error in server handshake."""
94
96
97 """If connect_timeout > 0 and it took longer than connect_timeout seconds
98 to connect to the server or if the server died while executing the
99 init-command.
100 """
101
103
104 """Commands out of sync; you can't run this command now."""
105
107
108 """Failed to connect to a named pipe on Windows."""
109
111
112 """Failed to wait for a named pipe on Windows."""
113
115
116 """Failed to create a named pipe on Windows."""
117
119
120 """Failed to get a pipe handler on Windows."""
121
123
124 """Unable to read the character set file."""
125
127
128 """Got packet bigger than 'max_allowed_packet' bytes."""
129
131
132 """Embedded server."""
133
135
136 """Error on SHOW SLAVE STATUS:."""
137
139
140 """Error on SHOW SLAVE HOSTS:."""
141
143
144 """Error connecting to slave:."""
145
147
148 """Error connecting to master:."""
149
151
152 """SSL connection error."""
153
155
156 """Malformed packet."""
157
159
160 """Invalid license when connecting to server."""
161
163
164 """Invalid use of null pointer."""
165
167
168 """Statement not prepared."""
169
171
172 """No data supplied for parameters in prepared statement."""
173
175
176 """Data truncated."""
177
179
180 """No parameters exist in the statement."""
181
183
184 """Invalid parameter number."""
185
187
188 """Indicates if the bind is to supply the long data in chunks and if the
189 buffer type is non string or binary.
190 """
191
193
194 """The conversion is not supported. Possibly the buffer_type value is
195 illegal or is not one of the supported types.
196 """
197
199
200 """Connection failure when using shared memory."""
201
203
204 """Can't open shared memory; client could not create request event."""
205
207
208 """Can't open shared memory; no answer event received from server."""
209
211
212 """Can't open shared memory; server could not allocate file mapping."""
213
215
216 """Can't open shared memory; server could not get pointer to file mapping."""
217
219
220 """Can't open shared memory; client could not allocate file mapping."""
221
223
224 """Can't open shared memory; client could not get pointer to file mapping."""
225
227
228 """Can't open shared memory; client could not create an event."""
229
231
232 """Can't open shared memory; no answer from server."""
233
235
236 """Can't open shared memory; cannot send request event to server."""
237
239
240 """Wrong or unknown protocol."""
241
243
244 """Invalid connection handle."""
245
247
248 """Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)."""
249
251
252 """Row retrieval was canceled by mysql_stmt_close() call."""
253
255
256 """Attempt to read column without prior row fetch."""
257
259
260 """Prepared statement contains no metadata."""
261
263
264 """Attempt to read a row while there is no result set associated with the statement."""
265
267
268 """This feature is not implemented yet."""
269