This commit is contained in:
aozhiwei 2020-06-17 16:23:07 +08:00
parent 2cd0d756d8
commit e53cddeed3
2 changed files with 6 additions and 0 deletions

View File

@ -373,6 +373,9 @@ namespace f8
if (!request) {
return;
}
if (DBPool::Instance()->on_dberror) {
DBPool::Instance()->on_dberror(request->param, errcode, errmsg);
}
if (request->on_error) {
request->on_error(request->param, errcode, errmsg);
}

View File

@ -13,6 +13,9 @@ namespace f8
DBPool() {};
friend class a8::Singleton<DBPool>;
public:
AsyncDBOnErrorFunc on_dberror = nullptr;
public:
void Init();
void UnInit();