std::future_error(3)

std::future_error3

Exception type thrown by futures.

Usage

#include <future>

Inherits std::logic_error.

Public Member Functions

future_error (future_errc __errc)
const error_code & code () const noexcept
virtual const char * what () const noexcept

Friends

void __throw_future_error (int)

Detailed Description

Exception type thrown by futures.

Since

C++11

Member Function Documentation

virtual const char * std::future_error::what () const [virtual], [noexcept]

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from std::logic_error.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From gcc 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.