Unverified Commit 77a76d86 authored by Benjamin Morel's avatar Benjamin Morel Committed by Sergei Morozov

Don't catch Exception anymore

parent a143efc2
...@@ -1148,7 +1148,6 @@ class Connection implements DriverConnection ...@@ -1148,7 +1148,6 @@ class Connection implements DriverConnection
* *
* @return mixed The value returned by $func * @return mixed The value returned by $func
* *
* @throws Exception
* @throws Throwable * @throws Throwable
*/ */
public function transactional(Closure $func) public function transactional(Closure $func)
...@@ -1158,9 +1157,6 @@ class Connection implements DriverConnection ...@@ -1158,9 +1157,6 @@ class Connection implements DriverConnection
$res = $func($this); $res = $func($this);
$this->commit(); $this->commit();
return $res; return $res;
} catch (Exception $e) {
$this->rollBack();
throw $e;
} catch (Throwable $e) { } catch (Throwable $e) {
$this->rollBack(); $this->rollBack();
throw $e; throw $e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment