MediaWiki REL1_32
ServiceAlreadyDefinedException.php
Go to the documentation of this file.
1<?php
2namespace MediaWiki\Services;
3
4use Exception;
5use RuntimeException;
6
35class ServiceAlreadyDefinedException extends RuntimeException {
36
41 public function __construct( $serviceName, Exception $previous = null ) {
42 parent::__construct( "Service already defined: $serviceName", 0, $previous );
43 }
44
45}
Exception thrown when a service was already defined, but the caller expected it to not exist.