Final Class Yiisoft\Factory\NotFoundException
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
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\ |
|
| getId() | Yiisoft\ |
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));
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.