21 #ifndef SEPARATISTA_EXCEPTION_H 22 #define SEPARATISTA_EXCEPTION_H 26 #include "separatista.h" 28 #ifdef SEPARATISTA_DEBUG 29 # define SEPARATISTA_THROW_EXCEPTION(type, msg, ...) throw type(msg, TEXT(__FILE__), __LINE__, __VA_ARGS__) 31 # define SEPARATISTA_THROW_EXCEPTION(type, msg, ...) throw type(msg, __VA_ARGS__) 32 #endif // defined SEPARATISTA_DEBUG 34 #define SEPARATISTA_REPORT(e) LOG(e.getMessage()) 44 #ifdef SEPARATISTA_DEBUG 45 Exception(
const wchar_t *pMessage,
const wchar_t *pPath,
int line);
48 const wchar_t* getMessage()
const;
51 void setMessage(
const wchar_t *pMessage);
63 #ifdef SEPARATISTA_DEBUG 68 const Element* getSourceElement()
const;
80 #ifdef SEPARATISTA_DEBUG 83 const wchar_t* getTag()
const;
96 #ifdef SEPARATISTA_DEBUG 99 const wchar_t* getNamespace()
const;
103 std::wstring m_Namespace;
106 #endif // !defined SEPARATISTA_EXCEPTION_H Definition: exception.h:40
Element exception, thrown when an element method called doesn't belong to the element type...
Definition: exception.h:58
Unsupported namespace exception, thrown when the namespace isn't supported.
Definition: exception.h:91
Unsupported tag exception, thrown when CreateElementByTag doesn't support the tag.
Definition: exception.h:75