Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/error condition"

From cppreference.com
< cpp‎ | error
(merge similar functions)
m (Text replace - "{{cpp|" to "{{c|")
Line 5: Line 5:
 
}}
 
}}
  
{{tt|std::error_condition}} is a platform-independent error code. Like {{cpp|std::error_code}}, it is uniquely identified by an integer value and a {{cpp|std::error_category}}, but unlike {{cpp|std::error_code}}, the value is not platform-dependent.
+
{{tt|std::error_condition}} is a platform-independent error code. Like {{c|std::error_code}}, it is uniquely identified by an integer value and a {{c|std::error_category}}, but unlike {{c|std::error_code}}, the value is not platform-dependent.
  
A typical implementation holds one integer data member (the value) and a pointer to an {{cpp|std::error_category}}.
+
A typical implementation holds one integer data member (the value) and a pointer to an {{c|std::error_category}}.
 
   
 
   
 
===Member functions===
 
===Member functions===

Revision as of 18:59, 19 April 2012

Template:cpp/error/error condition/sidebar

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

Member functions

constructs an error_condition
(public member function of Template:cpp/error/system error/error condition/title)
replaces the contents of an error_condition
(public member function of Template:cpp/error/system error/error condition/title)
replaces the contents of an error_condition
(public member function of Template:cpp/error/system error/error condition/title)
sets the error_condition to value 0 in generic_category
(public member function of Template:cpp/error/system error/error condition/title)
obtains the value of the error_condition
(public member function of Template:cpp/error/system error/error condition/title)
obtains the error_category for this error_condition
(public member function of Template:cpp/error/system error/error condition/title)
obtains the explanatory string for this error_condition
(public member function of Template:cpp/error/system error/error condition/title)
checks if the value is non-zero
(public member function of Template:cpp/error/system error/error condition/title)

Non-member functions

Template:cpp/error/system error/error condition/dcl list make error condition
compares error_conditions and error_codes
(function)

Helper classes

Template:cpp/error/system error/error condition/dcl list is error condition enum

See also

Template:cpp/error/system error/dcl list error codeTemplate:cpp/error/system error/dcl list error category