| 279 | : ExceptionBase(message), json(json) { } |
| 280 | virtual ~InvalidJSONKey() noexcept {} |
| 281 | std::string py_message() const override { |
| 282 | std::string out_msg = m_message + |
| 283 | " for JSON data " + |
| 284 | (json.size() > 100 ? " (abbreviated): " : ": ") |
| 285 | + json.substr(0, 99); |
| 286 | return out_msg; |
| 287 | } |
| 288 | }; |
| 289 | |
| 290 | /// Exception when no streams are found in the file |
nothing calls this directly
no outgoing calls
no test coverage detected