Struct WorkerException#
Defined in File worker_exception.h
Inheritance Relationships#
Base Type#
public std::exception
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)#