| 258 | } |
| 259 | |
| 260 | void Device::setDeviceErrorCode(RTCError error, std::string const& msg) |
| 261 | { |
| 262 | RTCErrorMessage* stored_error = errorHandler.error(); |
| 263 | if (stored_error->error == RTC_ERROR_NONE) { |
| 264 | stored_error->error = error; |
| 265 | if (msg != "") |
| 266 | stored_error->msg = msg; |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | RTCError Device::getDeviceErrorCode() |
| 271 | { |