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 rc)
12 .. function:: bool memcached_continue(memcached_return_t rc)
14 .. function:: bool memcached_failed(memcached_return_t rc)
16 .. function:: bool memcached_fatal(memcached_return_t rc)
18 .. c:type:: 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.
61 It is likely that either the number of file descriptors need to be increased or you are out of memory.
63 .. enumerator:: MEMCACHED_DATA_DOES_NOT_EXIST
65 The data requested with the key given was not found.
67 .. enumerator:: MEMCACHED_DATA_EXISTS
69 The data requested with the key given was not found.
71 .. enumerator:: MEMCACHED_DELETED
73 The object requested by the key has been deleted.
75 .. enumerator:: MEMCACHED_DEPRECATED
77 The method that was requested has been deprecated.
79 .. enumerator:: MEMCACHED_E2BIG
81 Item is too large for the server to store.
83 .. enumerator:: MEMCACHED_END
85 The server has completed returning all of the objects requested.
87 .. enumerator:: MEMCACHED_ERRNO
89 An error has occurred in the driver which has set errno.
91 .. enumerator:: MEMCACHED_FAIL_UNIX_SOCKET
93 A connection was not established with the server via a unix domain socket.
95 .. enumerator:: MEMCACHED_FAILURE
99 A unknown failure has occurred in the server.
101 .. enumerator:: MEMCACHED_FETCH_NOTFINISHED
103 A request has been made, but the server has not finished the fetch of the last request.
105 .. enumerator:: MEMCACHED_HOST_LOOKUP_FAILURE
107 A DNS failure has occurred.
109 .. enumerator:: MEMCACHED_INVALID_ARGUMENTS
111 The arguments supplied to the given function were not valid.
113 .. enumerator:: MEMCACHED_INVALID_HOST_PROTOCOL
115 The server you are connecting too has an invalid protocol.
116 Most likely you are connecting to an older server that does not speak the binary protocol.
118 .. enumerator:: MEMCACHED_ITEM
120 An item has been fetched (this is an internal error only).
122 .. enumerator:: MEMCACHED_KEY_TOO_BIG
124 The key that has been provided is too large for the given server.
126 .. enumerator:: MEMCACHED_MAXIMUM_RETURN
128 This in an internal only state.
130 .. enumerator:: MEMCACHED_MEMORY_ALLOCATION_FAILURE
132 An error has occurred while trying to allocate memory.
134 .. enumerator:: MEMCACHED_NO_KEY_PROVIDED
136 .. deprecated:: <0.30
137 Use `MEMCACHED_BAD_KEY_PROVIDED` instead.
141 .. enumerator:: MEMCACHED_NO_SERVERS
143 No servers have been added to the memcached_st object.
145 .. enumerator:: MEMCACHED_NOTFOUND
147 The object requested was not found.
149 .. enumerator:: MEMCACHED_NOTSTORED
151 The request to store an object failed.
153 .. enumerator:: MEMCACHED_NOT_SUPPORTED
155 The given method is not supported in the server.
157 .. enumerator:: MEMCACHED_PARSE_ERROR
159 An error has occurred while trying to parse the configuration string.
160 You should use memparse to determine what the error was.
162 .. enumerator:: MEMCACHED_PARSE_USER_ERROR
164 An error has occurred in parsing the configuration string.
166 .. enumerator:: MEMCACHED_PARTIAL_READ
168 The read was only partially successful.
170 .. enumerator:: MEMCACHED_PROTOCOL_ERROR
172 An unknown error has occurred in the protocol.
174 .. enumerator:: MEMCACHED_READ_FAILURE
176 A read failure has occurred.
178 .. enumerator:: MEMCACHED_SERVER_ERROR
180 An unknown error has occurred in the server.
182 .. enumerator:: MEMCACHED_SERVER_MARKED_DEAD
184 The requested server has been marked dead.
186 .. enumerator:: MEMCACHED_SOME_ERRORS
188 A multi request has been made, and some undetermined number of errors have occurred.
190 .. enumerator:: MEMCACHED_STAT
192 A "stat" command has been returned in the protocol.
194 .. enumerator:: MEMCACHED_STORED
196 The requested object has been successfully stored on the server.
198 .. enumerator:: MEMCACHED_SUCCESS
200 The request was successfully executed.
202 .. enumerator:: MEMCACHED_TIMEOUT
204 Operation has timed out.
206 .. enumerator:: MEMCACHED_UNKNOWN_READ_FAILURE
208 An unknown read failure only occurs when either there is a bug in the server,
209 or in rare cases where an ethernet nic is reporting dubious information.
211 .. enumerator:: MEMCACHED_UNKNOWN_STAT_KEY
213 The server you are communicating with has a stat key which has not be defined in the protocol.
215 .. enumerator:: MEMCACHED_VALUE
217 A value has been returned from the server (this is an internal condition only).
219 .. enumerator:: MEMCACHED_WRITE_FAILURE
221 An error has occurred while trying to write to a server.
228 :manpage:`memcached(1)`
229 :manpage:`libmemcached(3)`
230 :manpage:`memcached_strerror(3)`
234 * :manpage:`memcached(1)`
235 * :doc:`../libmemcached`
236 * :doc:`memcached_strerror`