| 328 | } |
| 329 | |
| 330 | void SubByteReaderLogging::logExceptionAndThrowError(const std::exception &ex, |
| 331 | const std::string & when) |
| 332 | { |
| 333 | if (this->currentTreeLevel) |
| 334 | { |
| 335 | auto errorMessage = "Reading error " + std::string(ex.what()); |
| 336 | this->currentTreeLevel->createChildItem("Error", {}, {}, {}, errorMessage, true); |
| 337 | } |
| 338 | throw std::logic_error("Error reading " + when); |
| 339 | } |
| 340 | |
| 341 | SubByteReaderLoggingSubLevel::SubByteReaderLoggingSubLevel(SubByteReaderLogging &reader, |
| 342 | std::string name) |
no test coverage detected