| Revision 418, 507 bytes
            (checked in by vbarta, 16 years ago) | 
        
          | 
#27: added UnitTest?++ to bdm sources, changed test_user_data to use it 
 | 
      
      
    | Line |  | 
|---|
| 1 | #ifndef UNITTEST_ASSERTEXCEPTION_H | 
|---|
| 2 | #define UNITTEST_ASSERTEXCEPTION_H | 
|---|
| 3 |  | 
|---|
| 4 | #include <exception> | 
|---|
| 5 |  | 
|---|
| 6 |  | 
|---|
| 7 | namespace UnitTest { | 
|---|
| 8 |  | 
|---|
| 9 | class AssertException : public std::exception | 
|---|
| 10 | { | 
|---|
| 11 | public: | 
|---|
| 12 | AssertException(char const* description, char const* filename, int lineNumber); | 
|---|
| 13 | virtual ~AssertException() throw(); | 
|---|
| 14 |  | 
|---|
| 15 | virtual char const* what() const throw(); | 
|---|
| 16 |  | 
|---|
| 17 | char const* Filename() const; | 
|---|
| 18 | int LineNumber() const; | 
|---|
| 19 |  | 
|---|
| 20 | private: | 
|---|
| 21 | char m_description[512]; | 
|---|
| 22 | char m_filename[256]; | 
|---|
| 23 | int m_lineNumber; | 
|---|
| 24 | }; | 
|---|
| 25 |  | 
|---|
| 26 | } | 
|---|
| 27 |  | 
|---|
| 28 | #endif | 
|---|