00001 #ifndef _EXCEPTION_H 00002 #define _EXCEPTION_H 00003 00004 #include <exception> 00005 00006 // TODO: More Exceptions: 00007 // - WarningWrongFrameDataType 00008 // - ErrorArgumentInvalid (nullpointer received, etc) 00009 00011 00016 class Exception : public std::exception 00017 { 00018 public: 00022 Exception(const char* msg) : message(msg) {} 00026 virtual const char* what() const throw() { return message; } 00027 private: 00028 const char* message; 00029 }; 00030 00031 #endif