| 231 | // Private methods |
| 232 | |
| 233 | std::string Session::Reply::Get(const std::string& key) const |
| 234 | { |
| 235 | const auto& pos = keys.find(key); |
| 236 | if (pos == keys.end() || !pos->second.has_value()) { |
| 237 | throw std::runtime_error( |
| 238 | strprintf("Missing %s= in the reply to \"%s\": \"%s\"", key, request, full)); |
| 239 | } |
| 240 | return pos->second.value(); |
| 241 | } |
| 242 | |
| 243 | template <typename... Args> |
| 244 | void Session::Log(const std::string& fmt, const Args&... args) const |
no test coverage detected