STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
future_error Class Reference
Inheritance diagram for future_error:
logic_error exception

Public Member Functions

 future_error (error_code _Errcode)
 
const error_codecode () const _NOEXCEPT
 
const char *__CLR_OR_THIS_CALL what () const _THROW0()
 
- Public Member Functions inherited from logic_error
 logic_error (const string &_Message)
 
 logic_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
 
void __CLR_OR_THIS_CALL _Raise () const
 

Protected Member Functions

virtual void _Doraise () const
 

Private Attributes

error_code _Mycode
 

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

future_error::future_error ( error_code  _Errcode)
inlineexplicit
156  : logic_error(""), _Mycode(_Errcode)
157  { // construct from error code
158  }
error_code _Mycode
Definition: future:181
logic_error(const string &_Message)
Definition: stdexcept:22

Member Function Documentation

virtual void future_error::_Doraise ( ) const
inlineprotectedvirtual

Reimplemented from logic_error.

175  { // perform class-specific exception handling
176  _RAISE(*this);
177  }
#define _RAISE(x)
Definition: xstddef:31
const error_code& future_error::code ( ) const
inline
161  { // return stored error code
162  return (_Mycode);
163  }
error_code _Mycode
Definition: future:181
const char* __CLR_OR_THIS_CALL future_error::what ( ) const
inlinevirtual

Reimplemented from exception.

166  { // get message string
167  return (_Future_error_map(_Mycode.value()));
168  }
int value() const _NOEXCEPT
Definition: system_error:263
error_code _Mycode
Definition: future:181
const char * _Future_error_map(int _Errcode) _NOEXCEPT
Definition: future:130

Member Data Documentation

error_code future_error::_Mycode
private

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