Final Class Yiisoft\Factory\NotFoundException
| Inheritance | Yiisoft\Factory\NotFoundException » Exception |
|---|---|
| Implements | Psr\Container\NotFoundExceptionInterface |
NotFoundException is thrown when no definition or class was found in the factory for a given ID.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Factory\NotFoundException | |
| getId() | Yiisoft\Factory\NotFoundException |
Method Details
| 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));
}
Signup or Login in order to comment.