Skip to content

Commit

Permalink
Exceção IuguObjectNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielpeixoto committed Mar 24, 2022
1 parent 5c4c933 commit 029ee9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GuPaymentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Iugu;
use Exception;
use IuguObjectNotFound;
use InvalidArgumentException;
use Iugu_Charge as IuguCharge;
use Iugu_Invoice as IuguInvoice;
Expand Down Expand Up @@ -420,7 +421,7 @@ public function findInvoice($id)

try {
return new Invoice($this, IuguInvoice::fetch($id));
} catch (Exception $e) {
} catch (IuguObjectNotFound $e) {
//
}

Expand Down

0 comments on commit 029ee9c

Please sign in to comment.