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 exception system_error experimental::filesystem::v1::filesystem_error ios_base::failure

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
 
- Protected Attributes inherited from exception
const char_Ptr
 

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)
 
- Public Member Functions inherited from exception
__CLR_OR_THIS_CALL exception (const char *_Message="unknown", int=1) _THROW0()
 
__CLR_OR_THIS_CALL exception (const exception &_Right) _THROW0()
 
exception &__CLR_OR_THIS_CALL operator= (const exception &_Right) _THROW0()
 
virtual __CLR_OR_THIS_CALL ~exception () _NOEXCEPT
 
virtual const char *__CLR_OR_THIS_CALL what () const _THROW0()
 
void __CLR_OR_THIS_CALL _Raise () const
 
- Static Public Member Functions inherited from exception
static _STD _Prhand _Set_raise_handler (_STD _Prhand _Pnew)
 

Constructor & Destructor Documentation

_System_error::_System_error ( error_code  _Errcode,
const string _Message 
)
inlineprotected
519  : runtime_error(_Makestr(_Errcode, _Message)), _Mycode(_Errcode)
520  { // construct from error code and message string
521  }
runtime_error(const string &_Message)
Definition: stdexcept:162
static string _Makestr(error_code _Errcode, string _Message)
Definition: system_error:509
error_code _Mycode
Definition: system_error:523

Member Function Documentation

static string _System_error::_Makestr ( error_code  _Errcode,
string  _Message 
)
inlinestaticprivate
510  { // compose error message
511  if (!_Message.empty())
512  _Message.append(": ");
513  _Message.append(_Errcode.message());
514  return (_Message);
515  }
_Myt & append(initializer_list< _Elem > _Ilist)
Definition: xstring:2199
string message() const
Definition: system_error:275
bool empty() const _NOEXCEPT
Definition: xstring:3090

Member Data Documentation

error_code _System_error::_Mycode
protected

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