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
*
* @return mixed The value returned by $func
*
* @throws Exception
* @throws Throwable
*/
public function transactional(Closure $func)
......@@ -1158,9 +1157,6 @@ class Connection implements DriverConnection
$res = $func($this);
$this->commit();
return $res;
} catch (Exception $e) {
$this->rollBack();
throw $e;
} catch (Throwable $e) {
$this->rollBack();
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