|
@ -41,16 +41,17 @@ class appexception : public std::exception { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
appexception(int32_t ecode, const string &description) { |
|
|
appexception(int32_t ecode, const string &description) { |
|
|
|
|
|
string descriptionstr; |
|
|
|
|
|
|
|
|
if (description.empty()) { |
|
|
if (description.empty()) { |
|
|
this->description = Internationalization::ecode2description(ecode); |
|
|
|
|
|
|
|
|
descriptionstr = Internationalization::ecode2description(ecode); |
|
|
} else { |
|
|
} else { |
|
|
this->description = description; |
|
|
|
|
|
|
|
|
descriptionstr = description; |
|
|
} |
|
|
} |
|
|
this->description = description; |
|
|
|
|
|
this->ecode = ecode; |
|
|
this->ecode = ecode; |
|
|
this->traceinfo = printStackTrace(); |
|
|
this->traceinfo = printStackTrace(); |
|
|
whatstr = description; |
|
|
|
|
|
// thisclass.logger->error(whatstr);
|
|
|
|
|
|
|
|
|
whatstr = descriptionstr; |
|
|
|
|
|
this->description = descriptionstr; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
virtual ~appexception() {} |
|
|
virtual ~appexception() {} |
|
|