rc_throwable Class Reference

#include <rc_throwable.h>

Inheritance diagram for rc_throwable:

rc_process_cancel_exception

List of all members.


Detailed Description

rc_throwable is the interface of a polymorphic error object.

By implementing this interface a class declares itself to be throwable. It supports polymorphic throws which is necessary for rethrowing an error.

Constraints on usage:

Definition at line 56 of file rc_throwable.h.


Public Member Functions

virtual void rc_throw ()=0
 Throws a pointer of this instance (preserving the type).
virtual ~rc_throwable ()
 The virtual destructor.

Related Functions

(Note that these are not member functions.)

void rc_throw (rc_throwable *t)
 This function throws a rc_throwable object (polymorphically).

Constructor & Destructor Documentation

virtual ~rc_throwable (  )  [inline, virtual]

The virtual destructor.

Definition at line 67 of file rc_throwable.h.


Member Function Documentation

virtual void rc_throw (  )  [pure virtual]

Throws a pointer of this instance (preserving the type).

Implemented in rc_process_cancel_exception.

Referenced by ReChannel::rc_throw().


Friends And Related Function Documentation

void rc_throw ( rc_throwable t  )  [related]

This function throws a rc_throwable object (polymorphically).

Parameters:
t A pointer to an object of type rc_throwable.
Exceptions:
RC_ID_NULL_POINTER_ if t is NULL.
RC_ID_INTERNAL_ERROR if rc_throwable object failed to throw itself

Definition at line 42 of file rc_throwable.cpp.


The documentation for this class was generated from the following file:
Generated on Tue Jan 1 23:14:15 2008 for ReChannel by  doxygen 1.5.3