std::error_condition::clear

void clear(); (since C++11) Clears the state of the error condition. Sets the error code to ​0​ and error category to std::generic_category. Parameters (none). Return value (none). Exceptions noexcept specification: noexcept

std::error_condition::operator bool

explicit operator bool() const; (since C++11) Checks whether the stored error code is not zero. Parameters (none). Return value true if value != 0, false otherwise. Exceptions noexcept specification: noexcept

std::exception

Defined in header <exception> class exception; Provides consistent interface to handle errors through the throw expression. All exceptions generated by the standard library inherit from std::exception. logic_error invalid_argument domain_error length_error out_of_range future_error(C++11) runtime_error range_error overflow_error underflow_error regex_error(C++11) system_error(C++11) ios_base::failure(since C++11) bad_typeid bad_cast bad_weak_pt

std::error_condition::error_condition

error_condition(); (1) (since C++11) error_condition( const error_condition& other ); (2) (since C++11)(implicitly declared) error_condition( int val, const error_category& cat ); (3) (since C++11) template< class ErrorConditionEnum > error_condition( ErrorConditionEnum e ); (4) (since C++11) Constructs new error condition. 1) Default constructor. Initializes the error condition with generic category and error code ​0​. 2) Copy constructor. Initializes

std::error_condition::value

int value() const; (since C++11) Returns the stored error code. Parameters (none). Return value The stored error code. Exceptions noexcept specification: noexcept

std::error_condition::message

std::string message() const; (since C++11) Returns an explanatory message for the stored error code and error category. Effectively calls category().message(value()). Parameters (none). Return value An explanatory message for the stored error code and error category. Exceptions (none).

std::error_code::operator bool

explicit operator bool() const; (since C++11) Checks if the error value is valid, i.e. non-zero. Parameters (none). Return value false if value() == 0, true otherwise. Exceptions noexcept specification: noexcept

std::error_code::value

int value() const; (since C++11) Returns the platform dependent error value. Parameters (none). Return value The platform-dependent error value. Exceptions noexcept specification: noexcept See also category obtains the error_category for this error_code (public member function)

std::error_code::error_code

error_code(); (1) (since C++11) error_code( int ec, const error_category& ecat ); (2) (since C++11) template< class ErrorCodeEnum > error_code( ErrorCodeEnum e ); (3) (since C++11) Constructs new error code. 1) Constructs error code with default value. Equivalent to error_code(0, std::system_category()). 2) Constructs error code with ec as the platform-dependent error code and ecat as the corresponding error category. 3) Constructs error code from an error code

std::error_condition

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. Member functions (constructor) constructs an error_condition (public membe