Skip to content

Commit

Permalink
Reogranizing Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Feb 4, 2024
1 parent 0466acb commit 190be99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace LeanOrm\Model;
namespace LeanOrm\Exceptions\Model;

/**
* @psalm-api
Expand Down
6 changes: 1 addition & 5 deletions src/LeanOrm/Model/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,7 @@ public function save(null|\GDAO\Model\RecordInterface|array $data_2_save = null)
*
* This save operation is gaurded by the PDO transaction mechanism.
* If the save operation fails all changes are rolled back.
*
* If there is no transaction mechanism available a
* \LeanOrm\Model\RecordOperationNotSupportedByDriverException Exception is
* thrown.
*
*
* @return bool|null true for a successful save, false for failed save, null: no changed data to save
*
* @throws \Exception throws exception if an error occurred during transaction
Expand Down

0 comments on commit 190be99

Please sign in to comment.