MediaWiki  1.34.4
NoSuchServiceException.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Wikimedia\Services;
4 
5 use Exception;
6 use Psr\Container\NotFoundExceptionInterface;
7 use RuntimeException;
8 
35 class NoSuchServiceException extends RuntimeException
36  implements NotFoundExceptionInterface {
37 
42  public function __construct( $serviceName, Exception $previous = null ) {
43  parent::__construct( "No such service: $serviceName", 0, $previous );
44  }
45 
46 }
47 
52 class_alias( NoSuchServiceException::class, 'MediaWiki\Services\NoSuchServiceException' );
Wikimedia\Services\NoSuchServiceException\__construct
__construct( $serviceName, Exception $previous=null)
Definition: NoSuchServiceException.php:42
Wikimedia\Services\NoSuchServiceException
Exception thrown when the requested service is not known.
Definition: NoSuchServiceException.php:36
Wikimedia\Services
Definition: CannotReplaceActiveServiceException.php:3