MCPcopy Create free account
hub / github.com/IENT/YUView / logExceptionAndThrowError

Method logExceptionAndThrowError

YUViewLib/src/parser/common/SubByteReaderLogging.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void 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
341SubByteReaderLoggingSubLevel::SubByteReaderLoggingSubLevel(SubByteReaderLogging &reader,
342 std::string name)

Callers 8

readBitsMethod · 0.95
readFlagMethod · 0.95
readUEVMethod · 0.95
readSEVMethod · 0.95
readLEB128Method · 0.95
readNSMethod · 0.95
readSUMethod · 0.95
readBytesMethod · 0.95

Calls 1

createChildItemMethod · 0.80

Tested by

no test coverage detected