|
|
@ -34,7 +34,7 @@ class appexception : public std::exception { |
|
|
|
this->description = description; |
|
|
|
this->m_ecode = ecode; |
|
|
|
this->whatstr = fmt::format("[{}:{}] throw exception: {} {}", thisclass.className, func, ecode2str(ecode), description); |
|
|
|
thisclass.logger->error(whatstr); |
|
|
|
// thisclass.logger->error(whatstr);
|
|
|
|
} |
|
|
|
|
|
|
|
appexception(ThisClass &thisclass, string func, int32_t ecode, const char *fmt, ...) { |
|
|
@ -46,7 +46,7 @@ class appexception : public std::exception { |
|
|
|
this->description = buffer; |
|
|
|
this->m_ecode = ecode; |
|
|
|
this->whatstr = fmt::format("[{}:{}] throw exception: {} {}", thisclass.className, func, ecode2str(ecode), buffer); |
|
|
|
thisclass.logger->error(whatstr); |
|
|
|
// thisclass.logger->error(whatstr);
|
|
|
|
} |
|
|
|
|
|
|
|
virtual ~appexception() {} |
|
|
|