STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Protected Member Functions | Protected Attributes | Static Private Member Functions | List of all members
_System_error Class Reference
Inheritance diagram for _System_error:
runtime_error system_error ios_base::failure tr2::sys::basic_filesystem_error< _Path >

Protected Member Functions

 _System_error (error_code _Errcode, const string &_Message)
 
- Protected Member Functions inherited from runtime_error
virtual void _Doraise () const
 

Protected Attributes

error_code _Mycode
 

Static Private Member Functions

static string _Makestr (error_code _Errcode, string _Message)
 

Additional Inherited Members

- Public Member Functions inherited from runtime_error
 runtime_error (const string &_Message)
 
 runtime_error (const char *_Message)
 

Constructor & Destructor Documentation

_System_error::_System_error ( error_code  _Errcode,
const string _Message 
)
inlineprotected
483  : runtime_error(_Makestr(_Errcode, _Message)), _Mycode(_Errcode)
484  { // construct from error code and message string
485  }
runtime_error(const string &_Message)
Definition: stdexcept:171
static string _Makestr(error_code _Errcode, string _Message)
Definition: system_error:473
error_code _Mycode
Definition: system_error:487

Member Function Documentation

static string _System_error::_Makestr ( error_code  _Errcode,
string  _Message 
)
inlinestaticprivate
474  { // compose error message
475  if (!_Message.empty())
476  _Message.append(": ");
477  _Message.append(_Errcode.message());
478  return (_Message);
479  }
string message() const
Definition: system_error:252
bool empty() const _NOEXCEPT
Definition: xstring:1791
_Myt & append(_XSTD initializer_list< _Elem > _Ilist)
Definition: xstring:972

Member Data Documentation

error_code _System_error::_Mycode
protected

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