#include <exception>
#include <string>
Go to the source code of this file.
Classes | |
class | EoaCore |
Defines | |
#define | OA_EXCEPTION(__name, __parent) |
#define OA_EXCEPTION | ( | __name, | |||
__parent | ) |
class __name : public __parent { \ public: \ __name() {AppendWhat(#__name);} \ }
A macro to build an exception class __name that is derived from __parent. The __parent class must be derived from EoaCore which provides the AppendWhat method. This macro builds an exception class that can be used:
/// OA_EXCEPTION(EChild,EoaCore); /// ... /// try { /// throw EChild(); /// } /// catch (EoaCore& ex) { /// std::cout << ex.what << std::endl; /// } ///
Definition at line 86 of file EoaCore.hxx.