Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ContainerDisabledException
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2declare( 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
11namespace Wikimedia\Services;
12
13use Exception;
14use Psr\Container\ContainerExceptionInterface;
15use RuntimeException;
16
17/**
18 * Exception thrown when trying to access a service on a disabled container or factory.
19 */
20class 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}