19 lines
433 B
PHP
19 lines
433 B
PHP
<?php
|
|
namespace App\CMS\Exceptions\Validation;
|
|
|
|
use Exception;
|
|
|
|
class ValidationFailedException extends \Exception {
|
|
protected $validator;
|
|
|
|
public function __construct($validator, $message = null, $code = null, Exception $previous = null)
|
|
{
|
|
parent::__construct($message, $code, $previous);
|
|
|
|
$this->validator = $validator;
|
|
}
|
|
|
|
public function getValidator(){
|
|
return $this->validator;
|
|
}
|
|
} |