/*! * \file include/Exception.h * \brief Custom global Exception * * \author xythobuz */ #ifndef _EXCEPTION_H_ #define _EXCEPTION_H_ #include #include #include class Exception : std::runtime_error { public: Exception(std::string what); static std::string getLastException(); private: static std::string lastException; virtual void foo(); //!< We don't want to emit a vtable in every translation unit }; #endif