0 follower

Final Class Yiisoft\Factory\NotFoundException

InheritanceYiisoft\Factory\NotFoundException » Exception
ImplementsPsr\Container\NotFoundExceptionInterface

NotFoundException is thrown when no definition or class was found in the factory for a given ID.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $id )
$id string

ID of the definition or name of the class that was not found.

                public function __construct(
    private string $id
) {
    parent::__construct(sprintf('No definition or class found or resolvable for %s.', $id));
}

            
getId() public method

public string getId ( )

                public function getId(): string
{
    return $this->id;
}