ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::TaskError Struct Reference

Information about a task exception. More...

#include <error_handler.hpp>

Public Member Functions

auto what () const -> std::string
 Get the exception message if it's a std::exception.
void rethrow () const
 Rethrow the exception.

Public Attributes

std::exception_ptr exception
std::string task_description
std::thread::id thread_id
std::chrono::steady_clock::time_point timestamp

Detailed Description

Information about a task exception.

Definition at line 19 of file error_handler.hpp.

Member Function Documentation

◆ rethrow()

void threadschedule::TaskError::rethrow ( ) const
inline

Rethrow the exception.

Definition at line 52 of file error_handler.hpp.

◆ what()

auto threadschedule::TaskError::what ( ) const -> std::string
inlinenodiscard

Get the exception message if it's a std::exception.

Definition at line 29 of file error_handler.hpp.

Member Data Documentation

◆ exception

std::exception_ptr threadschedule::TaskError::exception

Definition at line 21 of file error_handler.hpp.

◆ task_description

std::string threadschedule::TaskError::task_description

Definition at line 22 of file error_handler.hpp.

◆ thread_id

std::thread::id threadschedule::TaskError::thread_id

Definition at line 23 of file error_handler.hpp.

◆ timestamp

std::chrono::steady_clock::time_point threadschedule::TaskError::timestamp

Definition at line 24 of file error_handler.hpp.


The documentation for this struct was generated from the following file: