00001 #ifndef Exception_ 00002 #define Exception_ 00003 #include <string> 00004 00005 /*----------------- CLASS MPlotExceptions -------------- 00006 ----------------------------------------*/ 00007 00008 00009 class Exception 00010 { 00011 private: 00012 00013 protected: 00014 std::string m_error; 00015 public: 00016 Exception(std::string error){m_error = error;} 00017 Exception(const char *format,...); 00018 ~Exception(){} 00019 std::string getError(){return m_error;} 00020 }; 00021 00022 #endif