threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
Loading...
Searching...
No Matches
exceptions.hpp
Go to the documentation of this file.
1#pragma once
2
19
20#include <stdexcept>
21
22namespace threadman {
23
26class Exception : public std::runtime_error {
27public:
28 using std::runtime_error::runtime_error;
29};
30
32class FutureError : public Exception {
33public:
34 using Exception::Exception;
35};
36
40public:
41 using FutureError::FutureError;
42};
43
46public:
47 using FutureError::FutureError;
48};
49
52public:
53 using FutureError::FutureError;
54};
55
60public:
61 using FutureError::FutureError;
62};
63
66public:
67 using Exception::Exception;
68};
69
72public:
73 using Exception::Exception;
74};
75
79public:
80 using Exception::Exception;
81};
82
87public:
88 using Exception::Exception;
89};
90
91} // namespace threadman
A Promise was dropped before it satisfied its Future.
Definition exceptions.hpp:39
A second .then() was registered on a one-shot threadman::Future.
Definition exceptions.hpp:59
Root of every exception thrown by ThreadMan.
Definition exceptions.hpp:26
Promise::get_future() was called more than once on the same promise.
Definition exceptions.hpp:45
Generic future/promise error.
Definition exceptions.hpp:32
A failure originating from the housekeeping thread (listener crashed, internal invariant violated).
Definition exceptions.hpp:86
Submitting work to a bounded pool whose queue is already at capacity.
Definition exceptions.hpp:71
Submitting work to a pool that is shutting down or terminated.
Definition exceptions.hpp:65
set_value() / set_exception() was called twice on the same promise.
Definition exceptions.hpp:51
A queued task was cancelled — typically because shutdown_now() drained the queue before the task coul...
Definition exceptions.hpp:78
Definition exceptions.hpp:22