futures::error
Defined in header <futures/error.hpp>
class error;
Class for errors in the futures library.
Description
All errors in the futures library derive from this class.
The type carries a future_errc
Inherits from std::system_error
Inherited by: error
is a base class for
broken_promise, future_already_retrieved, future_deferred, future_uninitialized, no_state, packaged_task_uninitialized, promise_already_satisfied, and promise_uninitialized
Public Functions
Member Functions | Description |
---|---|
(constructor) | Constructor. (function template) |
(destructor) override = default | Destructor. (function) |
Public Functions
function error
Defined in header <futures/error.hpp>
(1)
template <class ErrorCodeEnum>
requires /* see requirements below */
error(ErrorCodeEnum ec);
(2)
template <class ErrorCodeEnum>
requires /* see requirements below */
error(ErrorCodeEnum ec, char const * what_arg);
(3)
template <class ErrorCodeEnum>
requires /* see requirements below */
error(ErrorCodeEnum ec, std::string const & what_arg);
Constructor.
Exception Safety
Basic exception guarantee.
function ~error
Defined in header <futures/error.hpp>
~error() override = default;
Destructor.
Exception Safety
Basic exception guarantee.
Updated on 2023-01-04