From a820665eea71a64b40e74ed24afeaf07a7a99db4 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 26 May 2006 14:36:57 +0000 Subject: Added the first of many unit tests. For now the unit tests are just built with everything else in the all target of the makefile, which is fine, but relies on CppTest, which can be found at http://cpptest.sf.net Also fixed some things I've been meaning to get to for a while in the xml system, including a few bugs that will make coping with malformed data not hang other programs, and do the error reporting in a nice way. --- src/xmlexception.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/xmlexception.cpp (limited to 'src/xmlexception.cpp') diff --git a/src/xmlexception.cpp b/src/xmlexception.cpp new file mode 100644 index 0000000..7012ee6 --- /dev/null +++ b/src/xmlexception.cpp @@ -0,0 +1,27 @@ +#include "xmlexception.h" +#include + +XmlException::XmlException( const char *lpFormat, ... ) throw() : + Exception( 0 ) +{ + va_list ap; + + va_start(ap, lpFormat); + setWhat( lpFormat, ap ); + va_end(ap); +} + +XmlException::XmlException( int nCode, const char *lpFormat, ... ) throw() : + Exception( nCode ) +{ + va_list ap; + + va_start(ap, lpFormat); + setWhat( lpFormat, ap ); + va_end(ap); +} + +XmlException::XmlException( int nCode ) throw() : + Exception( nCode ) +{ +} -- cgit v1.2.3