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

17 lines
514 B
PHP

<?php
declare(strict_types=1);
namespace Domain\Exceptions\OrderTunnel;
class UnorderableProductException extends \DomainException
{
// phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found -- Customizes default exception message.
public function __construct(
string $message = 'One or more products in your basket are no longer available for order.',
int $code = 0,
?\Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
}