# std::error_condition::category

> C++ Atlas: `cppatlas.com/w/cpp/error/error_condition/category` | Source: https://en.cppreference.com/w/cpp/error/error_condition/category | Domain: Diagnostics | Standards: C++11

Returns the stored error category.

## Official Specification Summary (cppreference)

```cpp
const error_category& category() const noexcept; // (since C++11)
```

Returns the stored error category.

### Parameters

(none)

### Return value

The stored error category.

### See also

- [`error_category`](https://en.cppreference.com/w/cpp/error/error_category) (C++11): base class for error categories (class)

---
Attribution: content from https://en.cppreference.com/w/cpp/error/error_condition/category (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.