| 141 | } |
| 142 | |
| 143 | inline const std::string INVALID_NODE_WITH_KEY(const std::string& key) { |
| 144 | std::stringstream stream; |
| 145 | if (key.empty()) { |
| 146 | return INVALID_NODE; |
| 147 | } |
| 148 | stream << "invalid node; first invalid key: \"" << key << "\""; |
| 149 | return stream.str(); |
| 150 | } |
| 151 | } // namespace ErrorMsg |
| 152 | |
| 153 | class YAML_CPP_API Exception : public std::runtime_error { |
no test coverage detected