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
WorkerException
stores anexception_ptr
to the original exception thrown in the worker thread.Public Functions
-
inline explicit WorkerException(std::exception_ptr original)#
Constructs a
WorkerException
from anexception_ptr
.
-
inline const char *what() const noexcept override#
-
inline explicit WorkerException(std::exception_ptr original)#