ldc-cocotte/domain/Exceptions/OrderTunnel/BasketPriceChangedException.php

19 lines
478 B
PHP

<?php
declare(strict_types=1);
namespace Domain\Exceptions\OrderTunnel;
use Domain\Models\Entities\Basket;
class BasketPriceChangedException extends \DomainException
{
public function __construct(
public readonly Basket $refreshedBasket,
string $message = 'The price of one or more products in your basket has changed.',
int $code = 0,
?\Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
}