Engine.php
3 years ago
ValidModel.php
3 years ago
ValidationException.php
3 years ago
index.php
3 years ago
ValidationException.php
21 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoetVendor\Sudzy; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | class ValidationException extends \Exception |
| 9 | { |
| 10 | protected $_validationErrors; |
| 11 | |
| 12 | public function __construct($errs) { |
| 13 | $this->_validationErrors = $errs; |
| 14 | parent::__construct(implode("\n", $errs)); |
| 15 | } |
| 16 | |
| 17 | public function getValidationErrors() { |
| 18 | return $this->_validationErrors; |
| 19 | } |
| 20 | } |
| 21 |