STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
exception Class Reference
Inheritance diagram for exception:
bad_alloc bad_cast bad_exception bad_function_call bad_typeid bad_weak_ptr logic_error runtime_error

Public Member Functions

__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

static _STD _Prhand _Set_raise_handler (_STD _Prhand _Pnew)
 

Protected Member Functions

virtual void __CLR_OR_THIS_CALL _Doraise () const
 

Protected Attributes

const char_Ptr
 

Constructor & Destructor Documentation

__CLR_OR_THIS_CALL exception::exception ( const char _Message = "unknown",
int  = 1 
)
inlineexplicit
96  : _Ptr(_Message)
97  { // construct from message string
98  }
const char * _Ptr
Definition: exception:135
__CLR_OR_THIS_CALL exception::exception ( const exception _Right)
inline
101  : _Ptr(_Right._Ptr)
102  { // construct by copying _Right
103  }
const char * _Ptr
Definition: exception:135
virtual __CLR_OR_THIS_CALL exception::~exception ( )
inlinevirtual
112  { // destroy the object
113  }

Member Function Documentation

virtual void __CLR_OR_THIS_CALL exception::_Doraise ( ) const
inlineprotectedvirtual
void __CLR_OR_THIS_CALL exception::_Raise ( ) const
inline
121  { // raise the exception
122  if (_STD _Raise_handler != 0)
123  (*_STD _Raise_handler)(*this); // call raise handler if present
124 
125  _Doraise(); // call the protected virtual
126  _RAISE(*this); // raise this exception
127  }
#define _RAISE(x)
Definition: xstddef:31
_CRTIMP2_NCEEPURE _Prhand _Raise_handler
virtual void __CLR_OR_THIS_CALL _Doraise() const
Definition: exception:130
static _STD _Prhand exception::_Set_raise_handler ( _STD _Prhand  _Pnew)
inlinestatic
86  { // register a handler for _Raise calls
87  const _STD _Prhand _Pold = _STD _Raise_handler;
88  _STD _Raise_handler = _Pnew;
89  return (_Pold);
90  }
_CRTIMP2_NCEEPURE _Prhand _Raise_handler
exception& __CLR_OR_THIS_CALL exception::operator= ( const exception _Right)
inline
106  { // assign _Right
107  _Ptr = _Right._Ptr;
108  return (*this);
109  }
const char * _Ptr
Definition: exception:135
virtual const char* __CLR_OR_THIS_CALL exception::what ( ) const
inlinevirtual

Reimplemented in bad_weak_ptr, future_error, bad_function_call, and bad_any_cast.

116  { // return pointer to message string
117  return (_Ptr != 0 ? _Ptr : "unknown exception");
118  }
const char * _Ptr
Definition: exception:135

Member Data Documentation

const char* exception::_Ptr
protected

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