Download src/Billing/Domain/Exceptions/OrderNotFoundException.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Domain/Exceptions/OrderNotFoundException.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Billing/Domain/Exceptions/OrderNotFoundException.php
-
curl -L -o OrderNotFoundException.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Billing/Domain/Exceptions/OrderNotFoundException.php
650 Bytes
| declare(strict_types=1); | |
| namespace Billing\Domain\Exceptions; | |
| use Exception; | |
| use Shared\Domain\ValueObjects\Id; | |
| use Throwable; | |
| class OrderNotFoundException extends Exception | |
| { | |
| /** | |
| * @param Id $id | |
| * @param int $code | |
| * @param null|Throwable $previous | |
| * @return void | |
| */ | |
| public function __construct( | |
| public readonly Id $id, | |
| int $code = 0, | |
| ?Throwable $previous = null, | |
| ) { | |
| parent::__construct( | |
| sprintf( | |
| "Order with id <%s> doesn't exists!", | |
| $id->getValue() | |
| ), | |
| $code, | |
| $previous | |
| ); | |
| } | |
| } | |