This aids in rethrowing exceptions from callers wanting to:
- void NyquistIO::Load(AudioData * data, const std::vector<uint8_t> & buffer)
- void NyquistIO::Load(AudioData * data, const std::string & extension, const std::vector<uint8_t> & buffer)

where std::exceptions are not raised by the catch on:
97d71768ef/src/Common.cpp (L135)
pull/43/head
pheonix 6 years ago
parent 97d71768ef
commit 55404f6ef6

@ -135,6 +135,7 @@ void NyquistIO::Load(AudioData * data, const std::string & extension, const std:
catch (const std::exception & e)
{
std::cerr << "caught internal loading exception: " << e.what() << std::endl;
throw;
}
}
else throw std::runtime_error("fatal: no decoders available");

Loading…
Cancel
Save