[futures.errors]

# 32 Concurrency support library [[thread]](./#thread)

## 32.10 Futures [[futures]](futures#errors)

### 32.10.3 Error handling [futures.errors]

[ð](#lib:future_category)

`const error_category& future_category() noexcept;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11226)

*Returns*: A reference to an object of a type derived from class error_category[.](#1.sentence-1)

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11230)

The object's default_error_condition and equivalent virtual functions shall
behave as specified for the class error_category[.](#2.sentence-1)

The object's name virtual function returns a pointer to the string "future"[.](#2.sentence-2)

[ð](#lib:make_error_code,future_errc)

`error_code make_error_code(future_errc e) noexcept;
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11242)

*Returns*: error_code(static_cast<int>(e), future_category())[.](#3.sentence-1)

[ð](#lib:make_error_condition,future_errc)

`error_condition make_error_condition(future_errc e) noexcept;
`

[4](#4)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11253)

*Returns*: error_condition(static_cast<int>(e), future_category())[.](#4.sentence-1)
