62 message_ +=
": " + reason_.message;
67 " (" + cancellation_reason::type_to_string(reason_.reason_type) +
")";
75 [[nodiscard]]
auto what() const noexcept -> const
char*
override
Cancellation reason structure for enhanced cancellation tokens.
Exception thrown when an operation is cancelled.
auto reason() const noexcept -> const cancellation_reason &
Returns the cancellation reason.
operation_cancelled_exception(cancellation_reason reason)
Constructs an exception with the given cancellation reason.
cancellation_reason reason_
auto what() const noexcept -> const char *override
Returns a description of the exception.
Core threading foundation of the thread system library.
Holds information about why a cancellation occurred.
std::string message
Human-readable message describing the cancellation.