17 message(
"Caught exception in DataLoader worker thread.") {
20 }
catch (std::exception& e) {
21 message +=
" Original message: ";
26 const char* what()
const noexcept
override {
std::string message
This exception's message (not the original exception's message).
An exception thrown when a DataLoader's worker thread throws an exception, which is caught...
std::exception_ptr original_exception
The original exception thrown in the worker thread.
WorkerException(std::exception_ptr original)
Constructs a WorkerException from an exception_ptr.