std::exception::exception (3) Linux Manual Page
std::exception::~exception – std::exception::~exception Synopsis virtual ~exception(); Destroys the exception object.
The Linux Manuals (man pages) document is an important part of Linux documents. Linux Manuals are organized as several sections. Each section has a group of commands for a specific area in Linux usage, administration or development.
std::exception::~exception – std::exception::~exception Synopsis virtual ~exception(); Destroys the exception object.
std::exception – std::exception Synopsis 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) * bad_optional_access(C++17) * runtime_error * range_error * overflow_error * underflow_error * regex_error(C++11) * nonexistent_local_time(C++20)…
std::error_condition::value – std::error_condition::value Synopsis int value() const noexcept; (since C++ 11) Returns the stored error code. Parameters (none) Return value The stored error code.
std::error_condition::operatorbool – std::error_condition::operatorbool Synopsis explicit operator bool() const noexcept; (since C++11) Checks whether the stored error code is not zero. Parameters (none) Return value true if value != 0, false otherwise.
std::error_condition::operator= – std::error_condition::operator= Synopsis error_condition &operator=(const error_condition &other) noexcept; (1)(since C++ 11)(implicitly declared) template <class ErrorConditionEnum> (2)(since C++ 11) error_condition & operator=(ErrorConditionEnum e) noexcept; Assigns contents to an error condition. 1) Copy assignment operator. Assigns the contents of other. 2) Assigns error condition for enum e. Effectively calls make_error_condition(). Does not participate in the overload…
std::error_condition::message – std::error_condition::message Synopsis 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 – std::error_condition::error_condition Synopsis error_condition() noexcept; (1)(since C++ 11) error_condition(const error_condition &other) noexcept; (2)(since C++ 11)(implicitly declared) error_condition(int val, const error_category &cat) noexcept; (3)(since C++ 11) template <class ErrorConditionEnum> (4)(since C++ 11) error_condition(ErrorConditionEnum e) noexcept; Constructs new error condition. 1) Default constructor. Initializes the error condition with generic category and error code 0. 2) Copy…
std::error_condition::clear – std::error_condition::clear Synopsis void clear() noexcept; (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)
std::error_condition::category – std::error_condition::category Synopsis const error_category &category() const noexcept; (since C++ 11) Returns the stored error category. Parameters (none) Return value The stored error category.
std::error_condition::assign – std::error_condition::assign Synopsis void assign(int val, const error_category &cat) noexcept; (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)
std::error_condition – std::error_condition Synopsis 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….
std::error_code::value – std::error_code::value Synopsis int value() const noexcept; (since C++ 11) Returns the platform dependent error value. Parameters (none) Return value The platform-dependent error value. See also obtains the error_category for this error_code category (public member function)
std::error_code::operatorbool – std::error_code::operatorbool Synopsis explicit operator bool() const noexcept; (since C++11) Checks if the error value is valid, i.e. non-zero. Parameters (none) Return value false if value() == 0, true otherwise.
std::error_code::operator= – std::error_code::operator= Synopsis template< class ErrorCodeEnum > (since C++11) error_code& operator=( ErrorCodeEnum e ) noexcept; Replaces the error code and corresponding category with those representing error code enum e. Equivalent to *this = std::make_error_code(e). The overload participates in overload resolutions only if std::is_error_code_enum<ErrorCodeEnum>::value == true. Parameters e – error code enum to construct Return…
std::error_code::message – std::error_code::message Synopsis std::string message() const; (since C++11) Returns the message corresponding to the current error value and category. Equivalent to category().message(value()). Parameters (none) Return value The error message corresponding to the current error value and category. Exceptions (none)
std::error_code::error_code – std::error_code::error_code Synopsis error_code() noexcept; (1)(since C++ 11) error_code(int ec, const error_category &ecat) noexcept; (2)(since C++ 11) template <class ErrorCodeEnum> (3)(since C++ 11) error_code(ErrorCodeEnum e) noexcept; 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…
std::error_code::default_error_condition – std::error_code::default_error_condition Synopsis std::error_condition default_error_condition() const noexcept; (since C++11) Returns the default error condition for the current error value. Equivalent to category().default_error_condition(value()). Parameters (none) Return value The default error condition for the current error value.
std::error_code::clear – std::error_code::clear Synopsis void clear() noexcept; (since C++ 11) Replaces the error code and error category with default values. Equivalent to *this = error_code(0, std::system_category()). Parameters (none) Return value (none)
std::error_code::category – std::error_code::category Synopsis const std::error_category &category() const noexcept; (since C++ 11) Returns the error category of the error value. Parameters (none) Return value The error category of the error value. See also obtains the value of the error_code value (public member function)
std::error_code::assign – std::error_code::assign Synopsis void assign(int ec, const error_category &ecat) noexcept; (since C++ 11) Replaces the contents with error code ec and corresponding category ecat. Parameters ec – platform-dependent error code enum to assign ecat – error category corresponding to ec Return value (none) See also assigns another error code operator= (public member function)