aboutsummaryrefslogtreecommitdiff
path: root/lib/exceptions/InvalidValuesException.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:07:19 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:19:12 +0200
commita3da1483a9e689846179159355badfec8073dbec (patch)
tree770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /lib/exceptions/InvalidValuesException.php
current code from svn, revision 62608
Diffstat (limited to 'lib/exceptions/InvalidValuesException.php')
-rw-r--r--lib/exceptions/InvalidValuesException.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/exceptions/InvalidValuesException.php b/lib/exceptions/InvalidValuesException.php
new file mode 100644
index 0000000..aa86e2f
--- /dev/null
+++ b/lib/exceptions/InvalidValuesException.php
@@ -0,0 +1,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($message, $checked)
+ {
+ $this->checked = $checked;
+ parent::__construct($message);
+ }
+
+ public function getChecked()
+ {
+ return $this->checked;
+ }
+} \ No newline at end of file