Namespaces
Variants
Views
Actions

std::error_category

From cppreference.com
< cpp‎ | error
Revision as of 15:46, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 
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

Template:cpp/error/error category/dcl list constructorTemplate:cpp/error/error category/dcl list destructorTemplate:cpp/error/error category/dcl list operator=Template:cpp/error/error category/dcl list nameTemplate:cpp/error/error category/dcl list default error conditionTemplate:cpp/error/error category/dcl list equivalentTemplate:cpp/error/error category/dcl list messageTemplate:cpp/error/error category/dcl list operator cmp

Specific error categories

Template:cpp/error/dcl list generic categoryTemplate:cpp/error/dcl list system categoryTemplate:cpp/io/dcl list iostream categoryTemplate:cpp/thread/future/dcl list future category

See also

Template:cpp/error/dcl list error conditionTemplate:cpp/error/dcl list error code