PluginProbe
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration / 1.22
FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration v1.22
2.1.0 2.0.15 2.0.12 2.0.10 2.0.4 2.0.1 2.0.0 1.95.3 1.95.2 1.95 1.91.6 trunk 1.11 1.12 1.13 1.20 1.21 1.22 1.23 1.30 1.31 1.32 1.35 1.40 1.41 All 42 releases
fluent-boards / vendor / wpfluent / framework / src / WPFluent / Validator / ValidationException.php

ValidationException.php in FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration 1.22, at vendor/wpfluent/framework/src/WPFluent/Validator/ValidationException.php

39 lines 783 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentBoards\Framework\Validator;
4
5 use Exception;
6
7 class ValidationException extends Exception
8 {
9 /**
10 * The validation errors
11 *
12 * @var array
13 */
14 protected $errors = [];
15
16 /**
17 * Construct the Validation Exception Instance
18 * @param string $message
19 * @param integer $code
20 * @param Exception|null $previous
21 * @param array $errors
22 */
23 public function __construct($message = "", $code = 0 , Exception $previous = NULL, $errors = [])
24 {
25 $this->errors = $errors;
26
27 parent::__construct($message, $code, $previous);
28 }
29
30 /**
31 * Retrieve the validation errors
32 * @return array
33 */
34 public function errors()
35 {
36 return $this->errors;
37 }
38 }
39