Файл: gapps/vendor/laravel/framework/src/Illuminate/Validation/ValidationException.php
Строк: 59
<?php
namespace IlluminateValidation;
use Exception;
class ValidationException extends Exception
{
/**
* The validator instance.
*
* @var IlluminateValidationValidator
*/
public $validator;
/**
* The recommended response to send to the client.
*
* @var IlluminateHttpResponse|null
*/
public $response;
/**
* Create a new exception instance.
*
* @param IlluminateValidationValidator $validator
* @param IlluminateHttpResponse $response
* @return void
*/
public function __construct($validator, $response = null)
{
parent::__construct('The given data failed to pass validation.');
$this->response = $response;
$this->validator = $validator;
}
/**
* Get the underlying response instance.
*
* @return SymfonyComponentHttpFoundationResponse
*/
public function getResponse()
{
return $this->response;
}
}