MediaWiki REL1_32
NoSuchServiceException.php
Go to the documentation of this file.
1<?php
2namespace MediaWiki\Services;
3
4use Exception;
5use RuntimeException;
6
33class NoSuchServiceException extends RuntimeException {
34
39 public function __construct( $serviceName, Exception $previous = null ) {
40 parent::__construct( "No such service: $serviceName", 0, $previous );
41 }
42
43}
Exception thrown when the requested service is not known.
__construct( $serviceName, Exception $previous=null)