|
@@ -223,7 +223,7 @@ class Connection implements ConnectionInterface
|
|
|
{
|
|
{
|
|
|
try {
|
|
try {
|
|
|
return $this->_driver->connect();
|
|
return $this->_driver->connect();
|
|
|
- } catch (\Exception $e) {
|
|
|
|
|
|
|
+ } catch (Exception $e) {
|
|
|
throw new MissingConnectionException(['reason' => $e->getMessage()]);
|
|
throw new MissingConnectionException(['reason' => $e->getMessage()]);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -679,7 +679,7 @@ class Connection implements ConnectionInterface
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$result = $callback($this);
|
|
$result = $callback($this);
|
|
|
- } catch (\Exception $e) {
|
|
|
|
|
|
|
+ } catch (Exception $e) {
|
|
|
$this->rollback(false);
|
|
$this->rollback(false);
|
|
|
throw $e;
|
|
throw $e;
|
|
|
}
|
|
}
|
|
@@ -727,7 +727,7 @@ class Connection implements ConnectionInterface
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$result = $callback($this);
|
|
$result = $callback($this);
|
|
|
- } catch (\Exception $e) {
|
|
|
|
|
|
|
+ } catch (Exception $e) {
|
|
|
$this->enableForeignKeys();
|
|
$this->enableForeignKeys();
|
|
|
throw $e;
|
|
throw $e;
|
|
|
}
|
|
}
|