|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Exception thrown when an operation is cancelled. More...
#include <cancellation_exception.h>


Public Member Functions | |
| operation_cancelled_exception (cancellation_reason reason) | |
| Constructs an exception with the given cancellation reason. | |
| auto | what () const noexcept -> const char *override |
| Returns a description of the exception. | |
| auto | reason () const noexcept -> const cancellation_reason & |
| Returns the cancellation reason. | |
Private Attributes | |
| cancellation_reason | reason_ |
| std::string | message_ |
Exception thrown when an operation is cancelled.
This exception type represents a cancelled operation. It carries the cancellation_reason for inspection by catch handlers.
Definition at line 49 of file cancellation_exception.h.
|
inlineexplicit |
Constructs an exception with the given cancellation reason.
| reason | The reason for the cancellation. |
Definition at line 56 of file cancellation_exception.h.
References kcenon::thread::cancellation_reason::message, message_, and reason_.
|
inlinenodiscardnoexcept |
Returns the cancellation reason.
Definition at line 84 of file cancellation_exception.h.
References reason_.
|
inlinenodiscardoverridenoexcept |
Returns a description of the exception.
Definition at line 75 of file cancellation_exception.h.
References message_.
|
private |
Definition at line 91 of file cancellation_exception.h.
Referenced by operation_cancelled_exception(), and what().
|
private |
Definition at line 90 of file cancellation_exception.h.
Referenced by operation_cancelled_exception(), and reason().