Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ContainerDisabledException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | /** |
| 5 | * Exception thrown when trying to access a service on a disabled container or factory. |
| 6 | * |
| 7 | * @license GPL-2.0-or-later |
| 8 | * @file |
| 9 | */ |
| 10 | |
| 11 | namespace Wikimedia\Services; |
| 12 | |
| 13 | use Exception; |
| 14 | use Psr\Container\ContainerExceptionInterface; |
| 15 | use RuntimeException; |
| 16 | |
| 17 | /** |
| 18 | * Exception thrown when trying to access a service on a disabled container or factory. |
| 19 | */ |
| 20 | class ContainerDisabledException extends RuntimeException |
| 21 | implements ContainerExceptionInterface { |
| 22 | |
| 23 | /** |
| 24 | * @param Exception|null $previous |
| 25 | */ |
| 26 | public function __construct( ?Exception $previous = null ) { |
| 27 | parent::__construct( 'Container disabled!', 0, $previous ); |
| 28 | } |
| 29 | |
| 30 | } |