2 #include "nlite_include.h"
6 Exception::Exception(){}
8 Exception::Exception(const char* const& errMessage):exception(errMessage){}
10 Exception::Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):
11 wErrMessage(errMessage),
15 WCHAR file[_MAX_FNAME];
17 _wsplitpath(in_fileName,(wchar_t*)NULL,(wchar_t*)NULL,file,ext);
23 LPCTSTR Exception::what(){
29 UINT_PTR Exception::getLineNo(){
34 LPCTSTR Exception::getFileName(){
40 LPCTSTR Exception::getFunctionName(){
46 AppInitException::AppInitException(UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):Exception(TEXT("
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\8f\89\8aú
\89»
\82É
\8e¸
\94s
\82µ
\82Ü
\82µ
\82½"),in_line,in_fileName,in_function){}
50 NLIBException::NLIBException(LPCTSTR errmessage,NLIB_RESULT rslt,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):errcode(rslt),Exception(errmessage,in_line,in_fileName,in_function){}
52 NLiveException::NLiveException(LPCTSTR errmessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):Exception(errmessage,in_line,in_fileName,in_function){}