mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
28 lines
507 B
C++
28 lines
507 B
C++
#ifndef UNITTEST_ASSERTEXCEPTION_H
|
|
#define UNITTEST_ASSERTEXCEPTION_H
|
|
|
|
#include <exception>
|
|
|
|
|
|
namespace UnitTest {
|
|
|
|
class AssertException : public std::exception
|
|
{
|
|
public:
|
|
AssertException(char const* description, char const* filename, int lineNumber);
|
|
virtual ~AssertException() throw();
|
|
|
|
virtual char const* what() const throw();
|
|
|
|
char const* Filename() const;
|
|
int LineNumber() const;
|
|
|
|
private:
|
|
char m_description[512];
|
|
char m_filename[256];
|
|
int m_lineNumber;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|