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;
35 const
int CommandExceptionBase = LoggerExceptionBase + 20;
40 const
int SystemExceptionBase = LoggerExceptionBase + 30;
43 const
int EditExceptionBase = LoggerExceptionBase + 40;
46 const
int PluginExceptionBase = LoggerExceptionBase + 50;
51 const
int FileExceptionBase = LoggerExceptionBase + 70;
62 const
int DataExceptionBase = LoggerExceptionBase + 85;
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(...){}