mitk::Exception::GetDescription() may return nullptr; treat that as an empty message so the remote-error helpers do not have to repeat the null-guard.
| 105 | // mitk::Exception::GetDescription() may return nullptr; treat that as an empty |
| 106 | // message so the remote-error helpers do not have to repeat the null-guard. |
| 107 | std::string Description(const mitk::Exception& e) |
| 108 | { |
| 109 | const char* description = e.GetDescription(); |
| 110 | return description != nullptr ? description : ""; |
| 111 | } |
| 112 | |
| 113 | // Heartbeat cadence: beat at half the server's liveness timeout, but never less |
| 114 | // often than every 5 s. Mirrors the client library's own _heartbeat_loop so a |
no test coverage detected