模型验证 异常捕获

pull/149/head
秦亚琦 2019-10-28 16:56:47 +08:00
parent b6f2307737
commit 3bfa5f1c4a
1 changed files with 6 additions and 6 deletions

View File

@ -128,7 +128,7 @@ trait Backend
} catch (PDOException $e) {
Db::rollback();
$this->error($e->getMessage());
} catch (Exception $e) {
} catch (\Exception $e) {
Db::rollback();
$this->error($e->getMessage());
}
@ -179,7 +179,7 @@ trait Backend
} catch (PDOException $e) {
Db::rollback();
$this->error($e->getMessage());
} catch (Exception $e) {
} catch (\Exception $e) {
Db::rollback();
$this->error($e->getMessage());
}
@ -218,7 +218,7 @@ trait Backend
} catch (PDOException $e) {
Db::rollback();
$this->error($e->getMessage());
} catch (Exception $e) {
} catch (\Exception $e) {
Db::rollback();
$this->error($e->getMessage());
}
@ -255,7 +255,7 @@ trait Backend
} catch (PDOException $e) {
Db::rollback();
$this->error($e->getMessage());
} catch (Exception $e) {
} catch (\Exception $e) {
Db::rollback();
$this->error($e->getMessage());
}
@ -291,7 +291,7 @@ trait Backend
} catch (PDOException $e) {
Db::rollback();
$this->error($e->getMessage());
} catch (Exception $e) {
} catch (\Exception $e) {
Db::rollback();
$this->error($e->getMessage());
}
@ -327,7 +327,7 @@ trait Backend
} catch (PDOException $e) {
Db::rollback();
$this->error($e->getMessage());
} catch (Exception $e) {
} catch (\Exception $e) {
Db::rollback();
$this->error($e->getMessage());
}