STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
runtime_error Class Reference
Inheritance diagram for runtime_error:
exception _System_error overflow_error range_error regex_error underflow_error system_error experimental::filesystem::v1::filesystem_error ios_base::failure

Public Member Functions

 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
 

Protected Member Functions

virtual void _Doraise () const
 

Additional Inherited Members

- Static Public Member Functions inherited from exception
static _STD _Prhand _Set_raise_handler (_STD _Prhand _Pnew)
 
- Protected Attributes inherited from exception
const char_Ptr
 

Constructor & Destructor Documentation

runtime_error::runtime_error ( const string _Message)
inlineexplicit
163  : _Mybase(_Message.c_str())
164  { // construct from message string
165  }
_Ret_z_ const _Elem * c_str() const _NOEXCEPT
Definition: xstring:3001
runtime_error::runtime_error ( const char _Message)
inlineexplicit
168  : _Mybase(_Message)
169  { // construct from message string
170  }

Member Function Documentation

virtual void runtime_error::_Doraise ( ) const
inlineprotectedvirtual

Reimplemented from exception.

Reimplemented in experimental::filesystem::v1::filesystem_error, system_error, range_error, underflow_error, and overflow_error.

177  { // perform class-specific exception handling
178  _RAISE(*this);
179  }
#define _RAISE(x)
Definition: xstddef:31

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