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

16 lines
418 B
PHP

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