Skip to content

Commit

Permalink
Don't catch Exception anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored and morozov committed Nov 2, 2019
1 parent 9fe89fc commit ee5e4a7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Doctrine/DBAL/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,6 @@ public function lastInsertId($seqName = null)
*
* @return mixed The value returned by $func
*
* @throws Exception
* @throws Throwable
*/
public function transactional(Closure $func)
Expand All @@ -1159,9 +1158,6 @@ public function transactional(Closure $func)
$this->commit();

return $res;
} catch (Exception $e) {
$this->rollBack();
throw $e;
} catch (Throwable $e) {
$this->rollBack();
throw $e;
Expand Down

0 comments on commit ee5e4a7

Please sign in to comment.