0 follower

Final Class Yiisoft\Yii\Cycle\Exception\NotFoundException

InheritanceYiisoft\Yii\Cycle\Exception\NotFoundException » Exception
ImplementsPsr\Container\NotFoundExceptionInterface, Yiisoft\FriendlyException\FriendlyExceptionInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $class, ?string $message null, integer $code 0, ?\Exception $previous null )
$class string
$message ?string
$code integer
$previous ?\Exception

                #[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);
}

            
getName() public method

public string getName ( )

                #[\Override]
public function getName(): string
{
    return 'Repository not found';
}

            
getSolution() public method

public ?string getSolution ( )

                #[\Override]
public function getSolution(): ?string
{
    return 'Check if the class exists or if the class is properly defined.';
}