15 #ifndef locationException_h 16 #define locationException_h 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__); 74 #endif // ifdef locationException_h sourceFileLocation(const T &parm, const char *fileName, unsigned lineNumber)
sourceFileLocation & operator=(const sourceFileLocation &)
const char * fileName() const
unsigned lineNumber() const
void throwExceptionWithLocation(const T &parm, const char *pFileName, unsigned lineNo)
Routines for code that can't continue or return after an error.