mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
16 lines
418 B
PHP
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);
|
|
}
|
|
}
|