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_typeid bad_array_new_length __non_rtti_object

Public Member Functions

__CLR_OR_THIS_CALL exception (const char *_Message="unknown", int x=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  x = 1 
)
inlineexplicit
240  : _Ptr(_Message)
241  { // construct from message string
242  (void)x;
243  }
_STDEXT_END _STD_BEGIN _USE_EXCEPTION typedef void(__cdecl *_Prhand)(const exception &)
const char * _Ptr
Definition: exception:280
__CLR_OR_THIS_CALL exception::exception ( const exception _Right)
inline
246  : _Ptr(_Right._Ptr)
247  { // construct by copying _Right
248  }
const char * _Ptr
Definition: exception:280
virtual __CLR_OR_THIS_CALL exception::~exception ( )
inlinevirtual
257  { // destroy the object
258  }

Member Function Documentation

virtual void __CLR_OR_THIS_CALL exception::_Doraise ( ) const
inlineprotectedvirtual

Reimplemented in bad_alloc, bad_exception, bad_typeid, and bad_cast.

276  { // perform class-specific exception handling
277  }
void __CLR_OR_THIS_CALL exception::_Raise ( ) const
inline
266  { // raise the exception
267  if (_STD _Raise_handler != 0)
268  (*_STD _Raise_handler)(*this); // call raise handler if present
269 
270  _Doraise(); // call the protected virtual
271  _RAISE(*this); // raise this exception
272  }
#define _RAISE(x)
Definition: xstddef:70
_CRTIMP2_NCEEPURE _Prhand _Raise_handler
virtual void __CLR_OR_THIS_CALL _Doraise() const
Definition: exception:275
static _STD _Prhand exception::_Set_raise_handler ( _STD _Prhand  _Pnew)
inlinestatic
230  { // register a handler for _Raise calls
231  const _STD _Prhand _Pold = _STD _Raise_handler;
232  _STD _Raise_handler = _Pnew;
233  return (_Pold);
234  }
_CRTIMP2_NCEEPURE _Prhand _Raise_handler
exception& __CLR_OR_THIS_CALL exception::operator= ( const exception _Right)
inline
251  { // assign _Right
252  _Ptr = _Right._Ptr;
253  return (*this);
254  }
const char * _Ptr
Definition: exception:280
virtual const char* __CLR_OR_THIS_CALL exception::what ( ) const
inlinevirtual
261  { // return pointer to message string
262  return (_Ptr != 0 ? _Ptr : "unknown exception");
263  }
const char * _Ptr
Definition: exception:280

Member Data Documentation

const char* exception::_Ptr
protected

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