3 const char *memcached_strerror(memcached_st
*ptr
, memcached_return_t rc
)
8 case MEMCACHED_SUCCESS
:
10 case MEMCACHED_FAILURE
:
12 case MEMCACHED_HOST_LOOKUP_FAILURE
:
13 return "HOSTNAME LOOKUP FAILURE";
14 case MEMCACHED_CONNECTION_FAILURE
:
15 return "CONNECTION FAILURE";
16 case MEMCACHED_CONNECTION_BIND_FAILURE
:
17 return "CONNECTION BIND FAILURE";
18 case MEMCACHED_READ_FAILURE
:
19 return "READ FAILURE";
20 case MEMCACHED_UNKNOWN_READ_FAILURE
:
21 return "UNKNOWN READ FAILURE";
22 case MEMCACHED_PROTOCOL_ERROR
:
23 return "PROTOCOL ERROR";
24 case MEMCACHED_CLIENT_ERROR
:
25 return "CLIENT ERROR";
26 case MEMCACHED_SERVER_ERROR
:
27 return "SERVER ERROR";
28 case MEMCACHED_WRITE_FAILURE
:
29 return "WRITE FAILURE";
30 case MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE
:
31 return "CONNECTION SOCKET CREATE FAILURE";
32 case MEMCACHED_DATA_EXISTS
:
33 return "CONNECTION DATA EXISTS";
34 case MEMCACHED_DATA_DOES_NOT_EXIST
:
35 return "CONNECTION DATA DOES NOT EXIST";
36 case MEMCACHED_NOTSTORED
:
38 case MEMCACHED_STORED
:
40 case MEMCACHED_NOTFOUND
:
42 case MEMCACHED_MEMORY_ALLOCATION_FAILURE
:
43 return "MEMORY ALLOCATION FAILURE";
44 case MEMCACHED_PARTIAL_READ
:
45 return "PARTIAL READ";
46 case MEMCACHED_SOME_ERRORS
:
47 return "SOME ERRORS WERE REPORTED";
48 case MEMCACHED_NO_SERVERS
:
49 return "NO SERVERS DEFINED";
52 case MEMCACHED_DELETED
:
53 return "SERVER DELETE";
55 return "SERVER VALUE";
61 return "SYSTEM ERROR";
62 case MEMCACHED_FAIL_UNIX_SOCKET
:
63 return "COULD NOT OPEN UNIX SOCKET";
64 case MEMCACHED_NOT_SUPPORTED
:
65 return "ACTION NOT SUPPORTED";
66 case MEMCACHED_FETCH_NOTFINISHED
:
67 return "FETCH WAS NOT COMPLETED";
68 case MEMCACHED_NO_KEY_PROVIDED
:
69 return "A KEY LENGTH OF ZERO WAS PROVIDED";
70 case MEMCACHED_BUFFERED
:
71 return "ACTION QUEUED";
72 case MEMCACHED_TIMEOUT
:
73 return "A TIMEOUT OCCURRED";
74 case MEMCACHED_BAD_KEY_PROVIDED
:
75 return "A BAD KEY WAS PROVIDED/CHARACTERS OUT OF RANGE";
76 case MEMCACHED_INVALID_HOST_PROTOCOL
:
77 return "THE HOST TRANSPORT PROTOCOL DOES NOT MATCH THAT OF THE CLIENT";
78 case MEMCACHED_SERVER_MARKED_DEAD
:
79 return "SERVER IS MARKED DEAD";
80 case MEMCACHED_UNKNOWN_STAT_KEY
:
81 return "ENCOUNTERED AN UNKNOWN STAT KEY";
83 return "ITEM TOO BIG";
84 case MEMCACHED_INVALID_ARGUMENTS
:
85 return "INVALID ARGUMENTS";
86 case MEMCACHED_KEY_TOO_BIG
:
87 return "KEY RETURNED FROM SERVER WAS TOO LARGE";
88 case MEMCACHED_AUTH_PROBLEM
:
89 return "FAILED TO SEND AUTHENTICATION TO SERVER";
90 case MEMCACHED_AUTH_FAILURE
:
91 return "AUTHENTICATION FAILURE";
92 case MEMCACHED_AUTH_CONTINUE
:
93 return "CONTINUE AUTHENTICATION";
94 case MEMCACHED_PARSE_ERROR
:
95 return "ERROR OCCURED WHILE PARSING";
96 case MEMCACHED_PARSE_USER_ERROR
:
97 return "USER INITIATED ERROR OCCURED WHILE PARSING";
98 case MEMCACHED_DEPRECATED
:
100 case MEMCACHED_MAXIMUM_RETURN
:
101 return "Gibberish returned!";
103 return "Gibberish returned!";