<?php namespace Illuminate\Validation; use Exception;
class ValidationException extends Exception{
public $validator;
public $response;
public function __construct($validator, $response = null)
{
parent::__construct('The given data failed to pass validation.');
$this->response = $response;
$this->validator = $validator;
}
public function getResponse()
{
return $this->response;
}
}
|