std::error_code
From Cppreference
Defined in header <system_error>
|
||
class error_code;
|
(since C++11) | |
std::error_code is a platform-dependent error code. Each std::error_code object holds one integer value (the error code, originating from the operating system, or some low-level interface) and a pointer to an object of type std::error_category. Thus, the error code values may be reused between different categories.
Contents |
[edit] Member functions
constructs an error_code (public member function) |
|
replaces the contents of an error_code (public member function) |
|
replaces the contents of an error_code (public member function) |
|
sets the error_code to value 0 in generic_category (public member function) |
|
obtains the value of the error_code (public member function) |
|
obtains the error_category for this error_code (public member function) |
|
obtains the error_condition for this error_code (public member function) |
|
obtains the explanatory string for this error_code (public member function) |
|
checks if the value is non-zero (public member function) |
[edit] Non-member functions
compares two error_codes (function) |
|
outputs the value and the message to an output stream (function) |
|
(C++11)
|
creates an error code from an error_category (function) |
[edit] Helper classes
(C++11)
|
identifies a class as an error_code enumeration (class template) |
(C++11)
|
hash support for std::error_code (class template specialization) |
[edit] See also
(C++11)
|
holds a portable error code (class) |
(C++11)
|
base class for error categories (class) |