1
0
mirror of synced 2024-11-21 20:36:08 +03:00
service-bundle/Exceptions/InvalidRequestArgumentException.php
2021-02-05 14:47:54 +03:00

39 lines
882 B
PHP

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