| 282 | } |
| 283 | |
| 284 | void Device::setThreadErrorCode(RTCError error, std::string const& msg) |
| 285 | { |
| 286 | RTCErrorMessage* stored_error = g_errorHandler.error(); |
| 287 | if (stored_error->error == RTC_ERROR_NONE) { |
| 288 | stored_error->error = error; |
| 289 | if (msg != "") |
| 290 | stored_error->msg = msg; |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | RTCError Device::getThreadErrorCode() |
| 295 | { |