1
0
mirror of synced 2024-11-28 15:46:04 +03:00
service-bundle/Exceptions/InvalidRequestArgumentException.php
Кривич Сергей 897df39d96 Update code base
2022-07-20 14:38:42 +03:00

24 lines
531 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, array $errors = [], Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
$this->validateErrors = $errors;
}
public function getValidateErrors(): array
{
return $this->validateErrors;
}
}