1
0
mirror of synced 2024-11-28 15:46:04 +03:00
service-bundle/Exceptions/InvalidRequestArgumentException.php
Кривич Сергей 430c5d9d4a Fix errors
2022-07-20 14:54:24 +03:00

24 lines
537 B
PHP

<?php
namespace RetailCrm\ServiceBundle\Exceptions;
use InvalidArgumentException;
use Throwable;
class InvalidRequestArgumentException extends InvalidArgumentException
{
private $validateErrors;
public function __construct(string $message = "", int $code = 0, iterable $errors = [], Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
$this->validateErrors = $errors;
}
public function getValidateErrors(): iterable
{
return $this->validateErrors;
}
}