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

Method curl_exception

src/curl_exception.cpp:17–26  ·  view source on GitHub ↗

Constructor implementation. Every call will push into the calls stack the function name and the error occurred.

Source from the content-addressed store, hash-verified

15
16// Constructor implementation. Every call will push into the calls stack the function name and the error occurred.
17curl_exception::curl_exception(const std::string &error, const std::string &fun_name) NOEXCEPT
18 : std::runtime_error(error) {
19
20 curl_exception::tracebackLocker.lock();
21
22 curl_exception::traceback.insert(
23 curl_exception::traceback.begin(),curlcpp_traceback_object(error,fun_name));
24
25 curl_exception::tracebackLocker.unlock();
26}
27
28// Copy constructor implementation. It makes a copy of the traceback in a thread safe way.
29curl_exception::curl_exception(const curl_exception &object) NOEXCEPT : std::runtime_error(object.what()) {

Callers

nothing calls this directly

Calls 1

get_tracebackMethod · 0.80

Tested by

no test coverage detected