| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @copyright © Melograno Venture Studio. All rights reserved. |
| 5 |
* @licence See LICENCE.md for license details. |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace IvyForms\Common\Exceptions; |
| 9 |
|
| 10 |
// phpcs:disable PSR1.Files.SideEffects |
| 11 |
if (!defined('ABSPATH')) { |
| 12 |
exit; // Exit if accessed directly |
| 13 |
} |
| 14 |
|
| 15 |
use Exception; |
| 16 |
|
| 17 |
/** |
| 18 |
* Class ValidationException |
| 19 |
* |
| 20 |
* @package IvyForms\Common\Exceptions |
| 21 |
*/ |
| 22 |
class ValidationException extends Exception |
| 23 |
{ |
| 24 |
/** |
| 25 |
* ValidationException constructor. |
| 26 |
* |
| 27 |
* @param string $message |
| 28 |
* @param int $code |
| 29 |
* @param Exception|null $previous |
| 30 |
*/ |
| 31 |
public function __construct($message = 'validation_failed', $code = 0, Exception $previous = null) |
| 32 |
{ |
| 33 |
parent::__construct($message, $code, $previous); |
| 34 |
} |
| 35 |
} |
| 36 |
|