for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Nexylan packages.
*
* (c) Nexylan SAS <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nexy\PayboxDirect\Exception;
use Nexy\PayboxDirect\Request\RequestInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;
/**
* @author Sullivan Senechal <[email protected]>
final class InvalidRequestPropertiesException extends \LogicException
{
* @var ConstraintViolationListInterface
private $errors;
* InvalidRequestPropertiesException constructor.
* @param RequestInterface $request
* @param ConstraintViolationListInterface $errors
* @param \Exception $previous
public function __construct(RequestInterface $request, ConstraintViolationListInterface $errors, \Exception $previous = null)
parent::__construct('', 0, $previous);
$this->message = PHP_EOL.(string) $errors;
$this->errors = $errors;
}
* @return ConstraintViolationListInterface
public function getErrors()
return $this->errors;