diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Exception/ParameterNotFoundException.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/Exception/ParameterNotFoundException.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Exception/ParameterNotFoundException.php b/www/wiki/extensions/SemanticMediaWiki/src/Exception/ParameterNotFoundException.php new file mode 100644 index 00000000..502275b4 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/Exception/ParameterNotFoundException.php @@ -0,0 +1,38 @@ +<?php + +namespace SMW\Exception; + +use InvalidArgumentException; + +/** + * @license GNU GPL v2+ + * @since 3.0 + * + * @author mwjames + */ +class ParameterNotFoundException extends InvalidArgumentException { + + /** + * @var string + */ + private $name; + + /** + * @since 3.0 + * + * @param string $name + */ + public function __construct( $name ) { + $this->name = $name; + parent::__construct( " $name is missing as argument!" ); + } + + /** + * @since 3.0 + * + * @return string + */ + public function getName() { + return $this->name; + } +} |