Constructor implementation. Every call will push into the calls stack the function name and the error occurred.
| 15 | |
| 16 | // Constructor implementation. Every call will push into the calls stack the function name and the error occurred. |
| 17 | curl_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. |
| 29 | curl_exception::curl_exception(const curl_exception &object) NOEXCEPT : std::runtime_error(object.what()) { |
nothing calls this directly
no test coverage detected