]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - extlib/libomb/invalidparameterexception.php
Merge branch '0.8.x' into 0.9.x
[quix0rs-gnu-social.git] / extlib / libomb / invalidparameterexception.php
1 <?php
2 /**
3  * Exception stating that a passed parameter is invalid
4  *
5  * This exception is raised when a parameter does not obey the OMB standard.
6  *
7  * PHP version 5
8  *
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.
13  *
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.
18  *
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/>.
21  *
22  * @package   OMB
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
26  **/
27 class OMB_InvalidParameterException extends Exception {
28   public function __construct($value, $type, $parameter) {
29     parent::__construct("Invalid value $value for parameter $parameter in $type");
30   }
31 }
32 ?>