1 Error Codes - memcached_return_t
2 ================================
7 #include <libmemcached/memcached.h>
8 Compile and link with -lmemcached
10 .. function:: bool memcached_success(memcached_return_t)
12 .. function:: bool memcached_continue(memcached_return_t rc)
14 .. function:: bool memcached_failed(memcached_return_t)
16 .. function:: bool memcached_fatal(memcached_return_t)
18 .. c:type:: typedef enum memcached_return_t memcached_return_t
20 .. enum:: memcached_return_t
22 .. enumerator:: MEMCACHED_AUTH_CONTINUE
24 Authentication has been paused.
26 .. enumerator:: MEMCACHED_AUTH_FAILURE
28 The credentials provided are not valid for this server.
30 .. enumerator:: MEMCACHED_AUTH_PROBLEM
32 An unknown issue has occurred during authentication.
34 .. enumerator:: MEMCACHED_BAD_KEY_PROVIDED
36 The key provided is not a valid key.
38 .. enumerator:: MEMCACHED_BUFFERED
40 The request has been buffered.
42 .. enumerator:: MEMCACHED_CLIENT_ERROR
44 An unknown client error has occurred internally.
46 .. enumerator:: MEMCACHED_CONNECTION_BIND_FAILURE
50 We were not able to bind() to the socket.
52 .. enumerator:: MEMCACHED_CONNECTION_FAILURE
54 A unknown error has occurred while trying to connect to a server.
56 .. enumerator:: MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE
60 An error has occurred while trying to connect to a server. It is likely that either the number of file descriptors need to be increased or you are out of memory.
62 .. enumerator:: MEMCACHED_DATA_DOES_NOT_EXIST
64 The data requested with the key given was not found.
66 .. enumerator:: MEMCACHED_DATA_EXISTS
68 The data requested with the key given was not found.
70 .. enumerator:: MEMCACHED_DELETED
72 The object requested by the key has been deleted.
74 .. enumerator:: MEMCACHED_DEPRECATED
76 The method that was requested has been deprecated.
78 .. enumerator:: MEMCACHED_E2BIG
80 Item is too large for the server to store.
82 .. enumerator:: MEMCACHED_END
84 The server has completed returning all of the objects requested.
86 .. enumerator:: MEMCACHED_ERRNO
88 An error has occurred in the driver which has set errno.
90 .. enumerator:: MEMCACHED_FAIL_UNIX_SOCKET
92 A connection was not established with the server via a unix domain socket.
94 .. enumerator:: MEMCACHED_FAILURE
98 A unknown failure has occurred in the server.
100 .. enumerator:: MEMCACHED_FETCH_NOTFINISHED
102 A request has been made, but the server has not finished the fetch of the last request.
104 .. enumerator:: MEMCACHED_HOST_LOOKUP_FAILURE
106 A DNS failure has occurred.
108 .. enumerator:: MEMCACHED_INVALID_ARGUMENTS
110 The arguments supplied to the given function were not valid.
112 .. enumerator:: MEMCACHED_INVALID_HOST_PROTOCOL
114 The server you are connecting too has an invalid protocol. Most likely you are connecting to an older server that does not speak the binary protocol.
116 .. enumerator:: MEMCACHED_ITEM
118 An item has been fetched (this is an internal error only).
120 .. enumerator:: MEMCACHED_KEY_TOO_BIG
122 The key that has been provided is too large for the given server.
124 .. enumerator:: MEMCACHED_MAXIMUM_RETURN
126 This in an internal only state.
128 .. enumerator:: MEMCACHED_MEMORY_ALLOCATION_FAILURE
130 An error has occurred while trying to allocate memory.
132 .. enumerator:: MEMCACHED_NO_KEY_PROVIDED
134 .. deprecated:: <0.30
135 Use `MEMCACHED_BAD_KEY_PROVIDED` instead.
139 .. enumerator:: MEMCACHED_NO_SERVERS
141 No servers have been added to the memcached_st object.
143 .. enumerator:: MEMCACHED_NOTFOUND
145 The object requested was not found.
147 .. enumerator:: MEMCACHED_NOTSTORED
149 The request to store an object failed.
151 .. enumerator:: MEMCACHED_NOT_SUPPORTED
153 The given method is not supported in the server.
155 .. enumerator:: MEMCACHED_PARSE_ERROR
157 An error has occurred while trying to parse the configuration string. You should use memparse to determine what the error was.
159 .. enumerator:: MEMCACHED_PARSE_USER_ERROR
161 An error has occurred in parsing the configuration string.
163 .. enumerator:: MEMCACHED_PARTIAL_READ
165 The read was only partially successful.
167 .. enumerator:: MEMCACHED_PROTOCOL_ERROR
169 An unknown error has occurred in the protocol.
171 .. enumerator:: MEMCACHED_READ_FAILURE
173 A read failure has occurred.
175 .. enumerator:: MEMCACHED_SERVER_ERROR
177 An unknown error has occurred in the server.
179 .. enumerator:: MEMCACHED_SERVER_MARKED_DEAD
181 The requested server has been marked dead.
183 .. enumerator:: MEMCACHED_SOME_ERRORS
185 A multi request has been made, and some undetermined number of errors have occurred.
187 .. enumerator:: MEMCACHED_STAT
189 A "stat" command has been returned in the protocol.
191 .. enumerator:: MEMCACHED_STORED
193 The requested object has been successfully stored on the server.
195 .. enumerator:: MEMCACHED_SUCCESS
197 The request was successfully executed.
199 .. enumerator:: MEMCACHED_TIMEOUT
201 Operation has timed out.
203 .. enumerator:: MEMCACHED_UNKNOWN_READ_FAILURE
205 An unknown read failure only occurs when either there is a bug in the server, or in rare cases where an ethernet nic is reporting dubious information.
207 .. enumerator:: MEMCACHED_UNKNOWN_STAT_KEY
209 The server you are communicating with has a stat key which has not be defined in the protocol.
211 .. enumerator:: MEMCACHED_VALUE
213 A value has been returned from the server (this is an internal condition only).
215 .. enumerator:: MEMCACHED_WRITE_FAILURE
217 An error has occurred while trying to write to a server.
224 :manpage:`memcached(1)`
225 :manpage:`libmemcached(3)`
226 :manpage:`memcached_strerror(3)`
230 * :manpage:`memcached(1)`
231 * :doc:`../libmemcached`
232 * :doc:`memcached_strerror`