root/library/tests/unittest-cpp/AssertException.cpp @ 471

Revision 418, 0.6 kB (checked in by vbarta, 15 years ago)

#27: added UnitTest?++ to bdm sources, changed test_user_data to use it

Line 
1#include "AssertException.h"
2#include <cstring>
3
4namespace UnitTest {
5
6AssertException::AssertException(char const* description, char const* filename, int lineNumber)
7    : m_lineNumber(lineNumber)
8{
9        using namespace std;
10
11    strcpy(m_description, description);
12    strcpy(m_filename, filename);
13}
14
15AssertException::~AssertException() throw()
16{
17}
18
19char const* AssertException::what() const throw()
20{
21    return m_description;
22}
23
24char const* AssertException::Filename() const
25{
26    return m_filename;
27}
28
29int AssertException::LineNumber() const
30{
31    return m_lineNumber;
32}
33
34}
Note: See TracBrowser for help on using the browser.