Struct WorkerException¶
Defined in File worker_exception.h
Page Contents
Struct Documentation¶
-
struct WorkerException : public std::exception¶
An exception thrown when a DataLoader’s worker thread throws an exception, which is caught.
A
WorkerExceptionstores anexception_ptrto the original exception thrown in the worker thread.Public Functions
-
inline explicit WorkerException(std::exception_ptr original)¶
Constructs a
WorkerExceptionfrom anexception_ptr.
-
inline const char *what() const noexcept override¶
-
inline explicit WorkerException(std::exception_ptr original)¶