comparison ext/UnitTest++/src/AssertException.cpp @ 89:fa33cda75471

* Reverting back to 2543 as requested by sleek
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 19 Jul 2008 11:38:52 +0000
parents 0d325e9d5953
children
comparison
equal deleted inserted replaced
88:1c2842ebe393 89:fa33cda75471
1 #include "AssertException.h"
2 #include <cstring>
3
4 namespace UnitTest {
5
6 AssertException::AssertException(char const* description, char const* filename, int const lineNumber)
7 : m_lineNumber(lineNumber)
8 {
9 std::strcpy(m_description, description);
10 std::strcpy(m_filename, filename);
11 }
12
13 AssertException::~AssertException() throw()
14 {
15 }
16
17 char const* AssertException::what() const throw()
18 {
19 return m_description;
20 }
21
22 char const* AssertException::Filename() const
23 {
24 return m_filename;
25 }
26
27 int AssertException::LineNumber() const
28 {
29 return m_lineNumber;
30 }
31
32 }