15 #ifndef locationException_h
16 #define locationException_h
29 const char *fileName ()
const;
30 unsigned lineNumber ()
const;
32 const char *pFileName;
33 unsigned lineNumberCopy;
38 T ( parm ), pFileName ( fileName ) , lineNumberCopy ( lineNumber ) {}
42 T ( in ), pFileName ( in.pFileName ), lineNumberCopy ( in.lineNumberCopy )
49 this->pFileName = in.pFileName;
50 this->lineNumberCopy = in.lineNumberCopy;
57 return this->lineNumberCopy;
63 return this->pFileName;
66 #define throwWithLocation(parm) throwExceptionWithLocation (parm, __FILE__, __LINE__);
69 inline void throwExceptionWithLocation (
const T &parm,
const char *pFileName,
unsigned lineNo)
74 #endif // ifdef locationException_h
Functions for interacting with the errlog task.
Routines for code that can't continue or return after an error.