MediaWiki REL1_33
CannotReplaceActiveServiceException.php
Go to the documentation of this file.
1<?php
3
4use Exception;
5use RuntimeException;
6
33class CannotReplaceActiveServiceException extends RuntimeException {
34
39 public function __construct( $serviceName, Exception $previous = null ) {
40 parent::__construct( "Cannot replace an active service: $serviceName", 0, $previous );
41 }
42
43}
44
49class_alias( CannotReplaceActiveServiceException::class,
50 'MediaWiki\Services\CannotReplaceActiveServiceException' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Exception thrown when trying to replace an already active service.