| 163 | } |
| 164 | |
| 165 | const char* Error::what() const { |
| 166 | const auto& table = errorCodeTable(); |
| 167 | auto it = table.find(error_code); |
| 168 | if (it == table.end()) |
| 169 | return "UNKNOWN_ERROR"; |
| 170 | return it->second.second; |
| 171 | } |
| 172 | |
| 173 | void Error::init() { |
| 174 | errorCodeTable(); |