MediaWiki
REL1_31
ServiceAlreadyDefinedException.php
Go to the documentation of this file.
1
<?php
2
namespace
MediaWiki\Services
;
3
4
use Exception;
5
use RuntimeException;
6
35
class
ServiceAlreadyDefinedException
extends
RuntimeException {
36
41
public
function
__construct
( $serviceName, Exception $previous =
null
) {
42
parent::__construct(
"Service already defined: $serviceName"
, 0, $previous );
43
}
44
45
}
MediaWiki\Services\ServiceAlreadyDefinedException
Exception thrown when a service was already defined, but the caller expected it to not exist.
Definition
ServiceAlreadyDefinedException.php:35
MediaWiki\Services\ServiceAlreadyDefinedException\__construct
__construct( $serviceName, Exception $previous=null)
Definition
ServiceAlreadyDefinedException.php:41
MediaWiki\Services
Definition
CannotReplaceActiveServiceException.php:2
includes
services
ServiceAlreadyDefinedException.php
Generated on Mon Nov 25 2024 15:35:19 for MediaWiki by
1.10.0