00001 #ifndef EXCEPTION_H 00002 #define EXCEPTION_H 00003 00004 #include <vector> 00005 #include <string> 00006 #include <sstream> 00007 00008 namespace MFUtil 00009 { 00013 class Exception 00014 { 00015 public: 00016 00022 Exception( const std::string& p_comment, const std::string& p_stack = "" ); 00023 00027 virtual ~Exception(){}; 00028 00032 void addComment( const std::string& p_comment ); 00033 00037 std::string getComment( void ) const; 00038 00042 void addStack( const std::string& p_stack ); 00043 00047 std::string getStack( void ) const; 00048 00052 std::string getInfo( void ) const; 00053 00054 protected: 00055 00056 private: 00057 00058 std::vector<std::string> m_Stack; 00059 std::string m_Comment; 00060 00061 }; 00062 } 00063 #endif 00064 > m_Stack; 00065 std::string m_Comment; 00066 00067 }; 00068 } 00069 #endif