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 __construct( string $id ): mixed
$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 getId( ): string

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