MediaWiki  master
ServiceDisabledException.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Wikimedia\Services;
4 
5 use Exception;
8 
36  implements ContainerExceptionInterface {
37 
42  public function __construct( $serviceName, Exception $previous = null ) {
43  parent::__construct( "Service disabled: $serviceName", 0, $previous );
44  }
45 
46 }
47 
52 class_alias( ServiceDisabledException::class, 'MediaWiki\Services\ServiceDisabledException' );
__construct( $serviceName, Exception $previous=null)
Exception thrown when trying to access a disabled service.