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::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::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::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_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::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::category

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

std::error_condition::assign

void assign( int val, const error_category& cat ); (since C++11) Assigns contents to an error condition. Sets the error code to val and error category to cat. Parameters val - error code cat - error category Return value (none). Exceptions noexcept specification: noexcept

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

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)