3 * Exception stating that a passed parameter is invalid
5 * This exception is raised when a parameter does not obey the OMB standard.
9 * LICENSE: This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU Affero General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Affero General Public License for more details.
19 * You should have received a copy of the GNU Affero General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 * @author Adrian Lang <mail@adrianlang.de>
24 * @copyright 2009 Adrian Lang
25 * @license http://www.gnu.org/licenses/agpl.html GNU AGPL 3.0
27 class OMB_InvalidParameterException extends Exception {
28 public function __construct($value, $type, $parameter) {
29 parent::__construct("Invalid value $value for parameter $parameter in $type");