blob: 595ba9f10f543ae7a8f481ed4c236ff9e891e8c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
/**
* InvalidValuesException.php
* Exception class used by validation of forms.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Peter Thienel <thienel@data-quest.de>
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Stud.IP
* @since 3.5
*/
class InvalidValuesException extends Exception
{
private $checked = [];
/**
* Constructor
*
* @param string $message The error message
* @param array $checked Associative array
*/
public function __construct(string $message, array $checked = [])
{
$this->checked = $checked;
parent::__construct($message);
}
public function getChecked()
{
return $this->checked;
}
}
|