MediaWiki REL1_31
ServiceDisabledException.php
Go to the documentation of this file.
1<?php
2namespace MediaWiki\Services;
3
4use Exception;
5use RuntimeException;
6
33class ServiceDisabledException extends RuntimeException {
34
39 public function __construct( $serviceName, Exception $previous = null ) {
40 parent::__construct( "Service disabled: $serviceName", 0, $previous );
41 }
42
43}
Exception thrown when trying to access a disabled service.
__construct( $serviceName, Exception $previous=null)