Files
Discount-Bandit/app/Exceptions/CouldNotUpdateProductDetailsException.php
2026-10-14 12:03:50 +04:00

16 lines
391 B
PHP

<?php
namespace App\Exceptions;
use App\Models\Link;
use Exception;
use Throwable;
class CouldNotUpdateProductDetailsException extends Exception
{
public function __construct(Link $link, ?Throwable $previous = null)
{
parent::__construct("could not update product details (name, image) for link {$link->id} with store {$link->store?->name}", previous: $previous);
}
}