wwa-coro 0.0.1
Yet Another C++20 Coroutine Library
exceptions.h
Go to the documentation of this file.
1#ifndef A271EFBC_A65F_4947_8E87_D4194949A073
2#define A271EFBC_A65F_4947_8E87_D4194949A073
3
11
12#include <stdexcept>
13
14namespace wwa::coro {
15
23class bad_result_access : public std::logic_error {
24public:
25 using std::logic_error::logic_error;
26};
27
34class bad_task : public std::logic_error {
35public:
36 using std::logic_error::logic_error;
37};
38
39} // namespace wwa::coro
40
41#endif /* A271EFBC_A65F_4947_8E87_D4194949A073 */
Exception thrown when accessing a result that is not available.
Definition exceptions.h:23
Exception thrown when a coroutine task is invalid.
Definition exceptions.h:34
Library namespace.