std::error_condition

From cppreference.com
 
 
 
Error handling
Exception handling
exception
uncaught_exception
exception_ptr (C++11)
make_exception_ptr (C++11)
current_exception (C++11)
rethrow_exception (C++11)
nested_exception (C++11)
throw_with_nested (C++11)
rethrow_if_nested (C++11)
Exception handling failures
terminate
terminate_handler
get_terminate (C++11)
set_terminate
unexpected (deprecated)
bad_exception
unexpected_handler (deprecated)
get_unexpected (C++11)(deprecated)
set_unexpected (deprecated)
Exception categories
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
Error codes
Error codes
errno
Assertions
assert
system_error facility
error_category (C++11)
generic_category (C++11)
system_category (C++11)
error_condition (C++11)
errc (C++11)
error_code (C++11)
system_error (C++11)
 
 
Defined in header <system_error>
class error_condition;
(since C++11)

std::error_condition is a platform-independent error code. Like std::error_code, it is uniquely identified by an integer value and a std::error_category, but unlike std::error_code, the value is not platform-dependent.

A typical implementation holds one integer data member (the value) and a pointer to an std::error_category.

Contents

[edit] Member functions

constructs an error_condition
(public member function)
replaces the contents of an error_condition
(public member function)
replaces the contents of an error_condition
(public member function)
sets the error_condition to value 0 in generic_category
(public member function)
obtains the value of the error_condition
(public member function)
obtains the error_category for this error_condition
(public member function)
obtains the explanatory string for this error_condition
(public member function)
checks if the value is non-zero
(public member function)

[edit] Non-member functions

compares error_conditions and error_codes
(function)
creates an error condition object of specified error_category
(function)

[edit] Helper classes

identifies an enumeration as an std::error_condition
(class template)

[edit] See also

(C++11)
holds a platform-dependent error code
(class)
base class for error categories
(class)