Rate this Page

Struct WorkerException#

Inheritance Relationships#

Base Type#

  • publicstd::exception

Struct Documentation#

structWorkerException:publicstd::exception#

An exception thrown when a DataLoader’s worker thread throws an exception, which is caught.

AWorkerException stores anexception_ptr to the original exception thrown in the worker thread.

Public Functions

inlineexplicitWorkerException(std::exception_ptroriginal)#

Constructs aWorkerException from anexception_ptr.

inlineconstchar*what()constnoexceptoverride#

Public Members

std::exception_ptroriginal_exception#

The original exception thrown in the worker thread.

std::stringmessage#

This exception’s message (not the original exception’s message).