mber variable   
(macro variable)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_errno&action=edit)  
[ E2BIG, EACCES, ..., EXDEV  ](/w/cpp/error/errno_macros "cpp/error/errno macros") |  macros for standard POSIX-compatible error conditions   
(macro constant)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_errno_macros&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/error&action=edit&section=4 "Edit
section: System error") ]  System error

The header ` <system_error> ` defines types and functions used to report error
conditions originating from the operating system, streams I/O,  [ std::future
](/w/cpp/thread/future "cpp/thread/future") , or other low-level APIs.

Defined in header ` [ <system_error> ](/w/cpp/header/system_error
"cpp/header/system error") `  
---  
[ error_category  ](/w/cpp/error/error_category "cpp/error/error category") (C++11)  |  base class for error categories   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_error_category&action=edit)  
[ generic_category  ](/w/cpp/error/generic_category "cpp/error/generic category") (C++11)  |  identifies the generic error category   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_generic_category&action=edit)  
[ system_category  ](/w/cpp/error/system_category "cpp/error/system category") (C++11)  |  identifies the operating system error category   
(function)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_system_category&action=edit)  
[ error_condition  ](/w/cpp/error/error_condition "cpp/error/error condition") (C++11)  |  holds a portable error code   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_error_condition&action=edit)  
[ errc  ](/w/cpp/error/errc "cpp/error/errc") (C++11)  |  the  [ std::error_condition ](/w/cpp/error/error_condition "cpp/error/error condition") enumeration listing all standard [ ` <cerrno> ` ](/w/cpp/header/cerrno "cpp/header/cerrno") macro constants   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_errc&action=edit)  
[ error_code  ](/w/cpp/error/error_code "cpp/error/error code") (C++11)  |  holds a platform-dependent error code   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_error_code&action=edit)  
[ system_error  ](/w/cpp/error/system_error "cpp/error/system error") (C++11)  |  exception class used to report conditions that have an error_code   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_system_error&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/error&action=edit&section=5 "Edit
section: Assertions") ]  Assertions

Assertions help to implement checking of preconditions in programs.

Defined in header ` [ <cassert> ](/w/cpp/header/cassert "cpp/header/cassert")
`  
---  
[ assert  ](/w/cpp/error/assert "cpp/error/assert") |  aborts the program if the user-specified condition is not  true  . May be disabled for release builds   
(function macro)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/error/dsc_assert&action=edit)  
  
###  [ [ edit ](/mwiki/index.php?title=cpp/error&action=edit&section=6 "Edit
section: Stacktrace") ]  [ Stacktrace ](/w/cpp/utility/basic_stacktrace
"cpp/utility/basic stacktrace")

Defined in header ` [ <stacktrace> ](/w/cpp/header/stacktrace
"cpp/header/stacktrace") `  
---  
[ stacktrace_entry  ](/w/cpp/utility/stacktrace_entry "cpp/utility/stacktrace entry") (C++23)  |  representation of an evaluation in a stacktrace   
(class)  [ [edit]
](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/utility/dsc_stacktrace_entry&action=edit)  
[ basic_stacktrace  ](/w/cpp/utility/basic_stacktrace "cpp/utility/basic stacktrace") (C++23)  |  approximate represe