diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/Services/Exception/ServiceNotFoundException.php')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/src/Services/Exception/ServiceNotFoundException.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/Services/Exception/ServiceNotFoundException.php b/www/wiki/extensions/SemanticMediaWiki/src/Services/Exception/ServiceNotFoundException.php new file mode 100644 index 00000000..664ea144 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/src/Services/Exception/ServiceNotFoundException.php @@ -0,0 +1,24 @@ +<?php + +namespace SMW\Services\Exception; + +use InvalidArgumentException; + +/** + * @license GNU GPL v2+ + * @since 3.0 + * + * @author mwjames + */ +class ServiceNotFoundException extends InvalidArgumentException { + + /** + * @since 3.0 + * + * {@inheritDoc} + */ + public function __construct( $service ) { + parent::__construct( "`$service` is not registered as service!" ); + } + +} |