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 { 00011 public: 00012 AssertException(char const* description, char const* filename, int lineNumber); 00013 virtual ~AssertException() throw(); 00014 00015 virtual char const* what() const throw(); 00016 00017 char const* Filename() const; 00018 int LineNumber() const; 00019 00020 private: 00021 char m_description[512]; 00022 char m_filename[256]; 00023 int m_lineNumber; 00024 }; 00025 00026 } 00027 00028 #endif