diff options
Diffstat (limited to 'src/xmlexception.cpp')
-rw-r--r-- | src/xmlexception.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ | |||
1 | #include "xmlexception.h" | ||
2 | #include <stdarg.h> | ||
3 | |||
4 | XmlException::XmlException( const char *lpFormat, ... ) throw() : | ||
5 | Exception( 0 ) | ||
6 | { | ||
7 | va_list ap; | ||
8 | |||
9 | va_start(ap, lpFormat); | ||
10 | setWhat( lpFormat, ap ); | ||
11 | va_end(ap); | ||
12 | } | ||
13 | |||
14 | XmlException::XmlException( int nCode, const char *lpFormat, ... ) throw() : | ||
15 | Exception( nCode ) | ||
16 | { | ||
17 | va_list ap; | ||
18 | |||
19 | va_start(ap, lpFormat); | ||
20 | setWhat( lpFormat, ap ); | ||
21 | va_end(ap); | ||
22 | } | ||
23 | |||
24 | XmlException::XmlException( int nCode ) throw() : | ||
25 | Exception( nCode ) | ||
26 | { | ||
27 | } | ||