REFACTORING: move content update and create logic into separate interactions
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user