#ifndef TPC_EXCEPTION_H #define TPC_EXCEPTION_H class TpcException { public: TpcException(std::string what) : message(what) {}; char* what() { return (char*)message.c_str(); } private: std::string message; }; #endif