2 #include "nlib_include.h"
8 Exception::Exception(){}
10 Exception::Exception(const char* const& errMessage):exception(errMessage){}
12 Exception::Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):
13 wErrMessage(errMessage),
17 WCHAR file[_MAX_FNAME];
19 _wsplitpath(in_fileName,(wchar_t*)NULL,(wchar_t*)NULL,file,ext);
25 LPCTSTR Exception::what(){
27 return wErrMessage.c_str();
31 UINT_PTR Exception::getLineNo(){
36 LPCTSTR Exception::getFileName(){
38 return fileName.c_str();
42 LPCTSTR Exception::getFunctionName(){
44 return function.c_str();