00001
00002 #ifndef MIX_DOMEXCEPTION_H_
00003 #define MIX_DOMEXCEPTION_H_
00004
00005 #include <exception>
00006 #include "misc.h"
00007 #include "classes.h"
00008
00009 namespace MiX{
00015 template <class Char,class Traits,class XMLTraits>
00016 class DomException : public std::exception{
00017 const Node<Char,Traits,XMLTraits>* m_pNode;
00018 ErrorType m_type;
00019 char* m_szData;
00020 public:
00022 DomException(const Node<Char,Traits,XMLTraits>* node,ErrorType type,const char* szData);
00024 virtual ~DomException() throw();
00026 const char* what()const throw();
00028 const Node<Char,Traits,XMLTraits>* getNode()const throw();
00030 ErrorType getType() const throw();
00031 };
00032 }
00033
00034 #ifndef MIX_DOMEXCEPTION_CPP_
00035 #include "DomException.cpp"
00036 #endif
00037
00038 #endif