1 #ifndef ZMEXCEPTION_ICC 2 #error "Exceptions/ZMexception.icc included without Exceptions/ZMexception.h" 46 inline ZMexception::ZMexception(
47 const std::string & mesg
48 ,
const ZMexSeverity howBad
53 , sourceFileName_(
"not ZMthrow'n as of yet" )
54 , mySeverity_( howBad == ZMexSEVERITYenumLAST ? _classInfo.severity() : howBad )
66 inline std::string ZMexception::message()
const {
73 inline int ZMexception::count()
const {
80 inline bool ZMexception::wasThrown()
const {
84 inline void ZMexception::wasThrown(
bool b )
const {
85 #ifdef DEFECT_NO_MUTABLE 86 ZMexception * localThis =
const_cast<ZMexception * const
>(
this);
87 localThis->wasThrown_ = b;
101 inline std::string ZMexception::handlerUsed()
const {
105 inline void ZMexception::handlerUsed(
const std::string handlerName )
const {
106 #ifdef DEFECT_NO_MUTABLE 107 ZMexception * localThis =
const_cast<ZMexception * const
>(
this);
108 localThis->handlerUsed_ = handlerName;
110 handlerUsed_ = handlerName;
119 inline ZMexSeverity ZMexception::severity()
const {
134 inline void ZMexception::location(
int iline,
const std::string filename )
const {
135 #ifdef DEFECT_NO_MUTABLE 136 ZMexception * localThis =
const_cast<ZMexception * const
>(
this);
137 localThis->line_ = iline;
138 localThis->sourceFileName_ = filename;
141 sourceFileName_ = filename;
145 inline std::string ZMexception::fileName()
const {
146 return sourceFileName_;
149 inline int ZMexception::line()
const {
153 inline bool ZMexception::OKtoLog()
const {
154 return classInfo().OKtoLog();