00001 #ifndef UNITTEST_ASSERTEXCEPTION_H 00002 #define UNITTEST_ASSERTEXCEPTION_H 00003 00004 #include <exception> 00005 00006 00007 namespace UnitTest { 00008 00009 class AssertException : public std::exception { 00010 public: 00011 AssertException ( char const* description, char const* filename, int lineNumber ); 00012 virtual ~AssertException() throw(); 00013 00014 virtual char const* what() const throw(); 00015 00016 char const* Filename() const; 00017 int LineNumber() const; 00018 00019 private: 00020 char m_description[512]; 00021 char m_filename[256]; 00022 int m_lineNumber; 00023 }; 00024 00025 } 00026 00027 #endif