Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCThrowWrapper Class Template Reference

Wrapper class with a += operator that returns the exception type. More...

#include <mcllib/MCThrow.h>

List of all members.

Public Member Functions

 MCThrowWrapper (const MCEXT &ex, const char *file, int line)
 MCThrowWrapper (const MCEXT &ex)
MCEXT & operator+= (const MCStringStream &mcss)


Detailed Description

template<typename MCEXT>
class mcllib::MCThrowWrapper< MCEXT >

Wrapper class with a += operator that returns the exception type.

This is instead of putting it on the MCExcept class which would be forced to always return the same type (i.e. MCExcept) meaning we would loose the derived class information. So, the long and the short of it is that this template allows for derived exception classes.


Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen 1.3.9.1