Skip to content

Commit

Permalink
Connection: begin, commit and rollback catches DriverException
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 9, 2018
1 parent bd8ce38 commit a6d46c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dibi/Connection.php
Expand Up @@ -353,7 +353,7 @@ public function begin(string $savepoint = null): void
$this->onEvent($event->done());
}

} catch (Exception $e) {
} catch (DriverException $e) {
if ($event) {
$this->onEvent($event->done($e));
}
Expand All @@ -377,7 +377,7 @@ public function commit(string $savepoint = null): void
$this->onEvent($event->done());
}

} catch (Exception $e) {
} catch (DriverException $e) {
if ($event) {
$this->onEvent($event->done($e));
}
Expand All @@ -401,7 +401,7 @@ public function rollback(string $savepoint = null): void
$this->onEvent($event->done());
}

} catch (Exception $e) {
} catch (DriverException $e) {
if ($event) {
$this->onEvent($event->done($e));
}
Expand Down

0 comments on commit a6d46c7

Please sign in to comment.