MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / curl_multi_exception

Class curl_multi_exception

include/curl_exception.h:170–192  ·  view source on GitHub ↗

* Derived class represents an error condition returned by the multi * interface functions. */

Source from the content-addressed store, hash-verified

168 * interface functions.
169 */
170 class curl_multi_exception : public curl_exception {
171 public:
172 /**
173 * This constructor enables setting a custom error message and the method name where
174 * the exception has been thrown.
175 */
176 curl_multi_exception(const std::string &error, const std::string &method) :
177 curl_exception(error,method), code(CURLM_OK) {}
178 /**
179 * The constructor will transform a CURLMcode error to a proper error message.
180 */
181 curl_multi_exception(const CURLMcode code, const std::string &method) :
182 curl_exception(curl_multi_strerror(code),method), code(code) {}
183
184 /**
185 * Returns the error code if there is one. Returns CURLM_OK if none has been set.
186 */
187 inline CURLMcode get_code() const {
188 return code;
189 }
190 private:
191 CURLMcode code;
192 };
193
194 /**
195 * Derived class used to represent an error condition returned by the share

Callers 10

curl_multiMethod · 0.85
addMethod · 0.85
removeMethod · 0.85
performMethod · 0.85
socket_actionMethod · 0.85
set_descriptorsMethod · 0.85
waitMethod · 0.85
assignMethod · 0.85
timeoutMethod · 0.85
addMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected