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

Revision 706, 0.6 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
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        using namespace std;
9
10        strcpy ( m_description, description );
11        strcpy ( m_filename, filename );
12}
13
14AssertException::~AssertException() throw() {
15}
16
17char const* AssertException::what() const throw() {
18        return m_description;
19}
20
21char const* AssertException::Filename() const {
22        return m_filename;
23}
24
25int AssertException::LineNumber() const {
26        return m_lineNumber;
27}
28
29}
Note: See TracBrowser for help on using the browser.