Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
better query exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Mar 4, 2016
1 parent 46bc10a commit d74aa18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Spiral/Database/Entities/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ public function transaction(callable $callback, $isolationLevel = null)
} catch (\Exception $exception) {
$this->rollBack();
throw $exception;
} catch (\Throwable $exception) {
$this->rollBack();
throw $exception;
}
}

Expand Down

0 comments on commit d74aa18

Please sign in to comment.