Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace FluentMail\Includes\Support;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ValidationException extends Exception
|
||||
{
|
||||
|
||||
protected $errors = [];
|
||||
|
||||
public function __construct($message = "", $code = 0 , Exception $previous = NULL, $errors = [])
|
||||
{
|
||||
$this->errors = $errors;
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
public function errors()
|
||||
{
|
||||
return $this->errors;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user