1.7 KiB
[syserr.errcondition.overview]
19 Diagnostics library [diagnostics]
19.5 System error support [syserr]
19.5.5 Class error_condition [syserr.errcondition]
19.5.5.1 Overview [syserr.errcondition.overview]
The class error_condition describes an object used to hold values identifying error conditions.
[Note 1:
error_condition values are portable abstractions, while error_code values ([syserr.errcode]) are implementation specific.
â end note]
namespace std {class error_condition {public:// [syserr.errcondition.constructors], constructors error_condition() noexcept; error_condition(int val, const error_category& cat) noexcept; template error_condition(ErrorConditionEnum e) noexcept; // [syserr.errcondition.modifiers], modifiersvoid assign(int val, const error_category& cat) noexcept; template error_condition& operator=(ErrorConditionEnum e) noexcept; void clear() noexcept; // [syserr.errcondition.observers], observersint value() const noexcept; const error_category& category() const noexcept; string message() const; explicit operator bool() const noexcept; private:int val_; // exposition onlyconst error_category* cat_; // exposition only};}