Final Class Yiisoft\Yii\Cycle\Exception\NotFoundException
| Inheritance | Yiisoft\Yii\Cycle\Exception\NotFoundException » Exception |
|---|---|
| Implements | Psr\Container\NotFoundExceptionInterface, Yiisoft\FriendlyException\FriendlyExceptionInterface |
Public Methods
Method Details
| public mixed __construct ( string $class, string|null $message = null, integer $code = 0, Exception|null $previous = null ) | ||
| $class | string | |
| $message | string|null | |
| $code | integer | |
| $previous | Exception|null | |
#[Pure]
public function __construct(string $class, ?string $message = null, int $code = 0, ?Exception $previous = null)
{
if ($message === null) {
$message = sprintf('No definition or class found or resolvable for "%s".', $class);
}
parent::__construct($message, $code, $previous);
}
| public string getName ( ) |
#[\Override]
public function getName(): string
{
return 'Repository not found';
}
| public string|null getSolution ( ) |
#[\Override]
public function getSolution(): ?string
{
return 'Check if the class exists or if the class is properly defined.';
}
Signup or Login in order to comment.