r2843 - trunk/libmutil/include/libmutil
erik at minisip.org
erik at minisip.org
Tue Oct 17 21:50:21 CEST 2006
Author: erik
Date: 2006-10-17 21:50:20 +0200 (Tue, 17 Oct 2006)
New Revision: 2843
Modified:
trunk/libmutil/include/libmutil/XMLParser.h
Log:
* Made the MXML exceptions be a sub-tree to the Exception class.
Modified: trunk/libmutil/include/libmutil/XMLParser.h
===================================================================
--- trunk/libmutil/include/libmutil/XMLParser.h 2006-10-17 19:49:09 UTC (rev 2842)
+++ trunk/libmutil/include/libmutil/XMLParser.h 2006-10-17 19:50:20 UTC (rev 2843)
@@ -28,6 +28,7 @@
#include <libmutil/libmutil_config.h>
#include<libmutil/mtypes.h>
+#include<libmutil/Exception.h>
#include<list>
@@ -60,12 +61,13 @@
* TODO: Actually implement XML support ;)
*/
-class LIBMUTIL_API XMLException{
+class LIBMUTIL_API XMLException : public Exception{
public:
- XMLException(std::string msg){this->msg=msg;};
- std::string what(){return msg;};
+ XMLException(std::string msg):
+ Exception(msg.c_str()) {/*this->msg=msg;*/};
+ //std::string what(){return msg;};
private:
- std::string msg;
+ //std::string msg;
};
class LIBMUTIL_API XMLElementNotFound: public XMLException{
More information about the Minisip-devel
mailing list