MediaWiki
REL1_34
CannotReplaceActiveServiceException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\Services
;
4
5
use Exception;
6
use Psr\Container\ContainerExceptionInterface;
7
use RuntimeException;
8
35
class
CannotReplaceActiveServiceException
extends
RuntimeException
36
implements ContainerExceptionInterface {
37
42
public
function
__construct
( $serviceName, Exception $previous =
null
) {
43
parent::__construct(
"Cannot replace an active service: $serviceName"
, 0, $previous );
44
}
45
46
}
47
52
class_alias( CannotReplaceActiveServiceException::class,
53
'MediaWiki\Services\CannotReplaceActiveServiceException'
);
Wikimedia\Services\CannotReplaceActiveServiceException
Exception thrown when trying to replace an already active service.
Definition
CannotReplaceActiveServiceException.php:36
Wikimedia\Services\CannotReplaceActiveServiceException\__construct
__construct( $serviceName, Exception $previous=null)
Definition
CannotReplaceActiveServiceException.php:42
Wikimedia\Services
Definition
CannotReplaceActiveServiceException.php:3
includes
libs
services
CannotReplaceActiveServiceException.php
Generated on Fri Apr 5 2024 23:10:12 for MediaWiki by
1.9.8