mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
26 lines
460 B
PHP
26 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use InvalidArgumentException;
|
|
|
|
class ScrapeSchemaValidationException extends InvalidArgumentException
|
|
{
|
|
/**
|
|
* @param array<int, string> $errors
|
|
*/
|
|
public function __construct(
|
|
protected array $errors,
|
|
) {
|
|
parent::__construct(implode(' ', $errors));
|
|
}
|
|
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public function errors(): array
|
|
{
|
|
return $this->errors;
|
|
}
|
|
}
|