9 #ifndef lgrExceptions_H_
10 #define lgrExceptions_H_
14 #include <vlutil/vlFilename.h>
15 #include <vlutil/vlExceptions.h>
17 #define typedefLoggerException(Name,Value) \
18 const int Name##Number = (Value);\
19 typedef DtTemplatedException<Name##Number> Name;
87 #define DtLgrTHROW(exceptionClass,errorMsg) \
89 DtFilename tempLocalFile(__FILE__);\
90 tempLocalFile.stripPath();\
91 DtString msg = DtString(#exceptionClass": ") + errorMsg;\
92 throw exceptionClass(msg.c_str(), __DtFUNC__,tempLocalFile.c_str(), __LINE__, 0);\
95 #define DtCATCH_AND_IGNORE catch(...){}
#define typedefLoggerException(Name, Value)
Definition: lgrExceptions.h:17
const int DataExceptionBase
Definition: lgrExceptions.h:62
const int HLAExceptionBase
Definition: lgrExceptions.h:66
#define DT_DLL_LGRUTIL
Definition: lgrUtil.h:19
const int ThreadExceptionBase
Definition: lgrExceptions.h:26
DT_DLL_LGRUTIL DtString DtSerializeException(const DtException &exception, bool fullTrace=false)
Serialize Exception into a string.
const int PluginExceptionBase
Definition: lgrExceptions.h:46
const int EditExceptionBase
Definition: lgrExceptions.h:43
const int GUIExceptionBase
Definition: lgrExceptions.h:75
Contains IMPORT/EXPORT macros for lgrUtil library.
const int SystemExceptionBase
Definition: lgrExceptions.h:40
const int FileExceptionBase
Definition: lgrExceptions.h:51
const int CommandExceptionBase
Definition: lgrExceptions.h:35
const int LoggerConfigExceptionBase
Definition: lgrExceptions.h:32
const int LoggerExceptionBase
Definition: lgrExceptions.h:24