75 template <
class _exceptionType>
78 const std::exception * stdExcept =
dynamic_cast<const std::exception *
>(&except);
80 CMN_LOG(lod) <<
"cmnThrow with std::exception ("
85 CMN_LOG(lod) <<
"cmnThrow with non std::exception"
88 #ifdef CISST_CMN_THROW_DOES_ABORT
89 CMN_LOG(lod) <<
"cmnThrow is configured to abort() (CISST_CMN_THROW_DOES_ABORT defined)"
94 #endif // CISST_CMN_THROW_DOES_ABORT
112 cmnThrow(std::runtime_error(message), lod);
116 cmnThrow(std::runtime_error(std::string(message)), lod);
121 #endif // _cmnThrow_h
#define CMN_LOG_LEVEL_INIT_ERROR
Definition: cmnLogLoD.h:58
void cmnThrow(const _exceptionType &except, cmnLogLevel lod=CMN_LOG_LEVEL_INIT_ERROR)
Definition: cmnThrow.h:76
short cmnLogLevel
Definition: cmnLogLoD.h:55
Declaration of cmnLogger amd macros for human readable logging.
#define CMN_LOG(lod)
Definition: cmnLogger.h:150