SysTutorials

Linux Manual Pages › Section 3

stderror_category(3)

std::error_category – std::error_category

Synopsis

Defined in header <system_error>
class error_category; (since C++11)
std::error_category serves as the base class for specific error category types, such as std::system_category, std::iostream_category, etc. Each specific category class defines the error_code – error_condition mapping and holds the explanatory strings for all error_conditions. The objects of error category classes are treated as singletons, passed by reference.

Member functions

                        constructs an error_category
constructor (public member function)

destructor destructs an error_category
                        (virtual public member function)
[virtual]

operator= not copy assignable
                        (public member function)
[deleted]

name obtains the name of the category
                        (virtual public member function)
[virtual]

default_error_condition maps error_code to error_condition
                        (virtual public member function)
[virtual]

equivalent compares error_code and error_condition for equivalence
                        (virtual public member function)
[virtual]

message obtains the explanatory string
                        (virtual public member function)
[virtual]

operator== compares two error categories
operator!= (function)
operator<

Specific error categories

generic_category identifies the generic error category
                  (function)
(C++11)

system_category identifies the operating system error category
                  (function)
(C++11)

iostream_category identifies the iostream error category
                  (function)
(C++11)

future_category identifies the future error category
                  (function)
(C++11)

error_condition holds a portable error code
                  (class)
(C++11)

error_code holds a platform-dependent error code
                  (class)
(C++11)