1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 13:17:58 +02:00

Connection: begin, commit and rollback catches DriverException

This commit is contained in:
David Grudl
2018-05-09 13:33:43 +02:00
parent bd8ce38320
commit a6d46c7006

View File

@@ -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));
}