mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-20 22:03:13 +01:00
29 lines
507 B
C++
29 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
|