. * * @package OMB * @author Adrian Lang * @license http://www.gnu.org/licenses/agpl.html GNU AGPL 3.0 * @version 0.1a-20090828 * @link http://adrianlang.de/libomb */ /** * Exception stating that a passed parameter is invalid * * This exception is raised when a parameter does not obey the OMB standard. */ class OMB_InvalidParameterException extends Exception { /** * Constructor * * Creates a new exception based on a parameter name, value, and object * type. * * @param string $value The wrong value passed * @param string $type The object type the parameter belongs to; * Currently OMB uses profiles and notices * @param string $parameter The name of the parameter the wrong value has * been passed for */ public function __construct($value, $type, $parameter) { parent::__construct("Invalid value ‘${value}’ for parameter " . "‘${parameter}’ in $type"); } } ?>