mirror of
https://github.com/dg/dibi.git
synced 2025-02-22 18:02:25 +01:00
Connection: begin, commit and rollback catches DriverException
This commit is contained in:
parent
bd8ce38320
commit
a6d46c7006
@ -353,7 +353,7 @@ class Connection implements IConnection
|
||||
$this->onEvent($event->done());
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
} catch (DriverException $e) {
|
||||
if ($event) {
|
||||
$this->onEvent($event->done($e));
|
||||
}
|
||||
@ -377,7 +377,7 @@ class Connection implements IConnection
|
||||
$this->onEvent($event->done());
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
} catch (DriverException $e) {
|
||||
if ($event) {
|
||||
$this->onEvent($event->done($e));
|
||||
}
|
||||
@ -401,7 +401,7 @@ class Connection implements IConnection
|
||||
$this->onEvent($event->done());
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
} catch (DriverException $e) {
|
||||
if ($event) {
|
||||
$this->onEvent($event->done($e));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user