STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
_Generic_error_category Class Reference
Inheritance diagram for _Generic_error_category:
error_category _Future_error_category _Iostream_error_category _System_error_category

Public Member Functions

 _Generic_error_category ()
 
virtual const char * name () const _NOEXCEPT
 
virtual string message (int _Errcode) const
 
- Public Member Functions inherited from error_category
 error_category ()
 
virtual ~error_category () _NOEXCEPT
 
virtual error_condition default_error_condition (int _Errval) const _NOEXCEPT
 
virtual bool equivalent (int _Errval, const error_condition &_Cond) const _NOEXCEPT
 
virtual bool equivalent (const error_code &_Code, int _Errval) const _NOEXCEPT
 
bool operator== (const error_category &_Right) const _NOEXCEPT
 
bool operator!= (const error_category &_Right) const _NOEXCEPT
 
bool operator< (const error_category &_Right) const _NOEXCEPT
 
 error_category (const error_category &)=delete
 
error_categoryoperator= (const error_category &)=delete
 

Constructor & Destructor Documentation

_Generic_error_category::_Generic_error_category ( )
inline
554  { // default constructor
555  }

Member Function Documentation

virtual string _Generic_error_category::message ( int  _Errcode) const
inlinevirtual

Implements error_category.

Reimplemented in _System_error_category, _Iostream_error_category, and _Future_error_category.

563  { // convert to name of error
564  const char *_Name = _Syserror_map(_Errcode);
565  return (string(_Name != 0 ? _Name : "unknown error"));
566  }
_CRTIMP2_PURE const char *__CLRCALL_PURE_OR_CDECL _Syserror_map(int)
virtual const char* _Generic_error_category::name ( ) const
inlinevirtual

Implements error_category.

Reimplemented in _System_error_category, _Iostream_error_category, and _Future_error_category.

558  { // get name of category
559  return ("generic");
560  }

The documentation for this class was generated from the following file: