#include <rc_throwable.h>
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). |
virtual ~rc_throwable | ( | ) | [inline, virtual] |
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().
void rc_throw | ( | rc_throwable * | t | ) | [related] |
This function throws a rc_throwable object (polymorphically).
t | A pointer to an object of type rc_throwable. |
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.