Final Class Yiisoft\Yii\Cycle\Exception\NotFoundException
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
Public Methods
Method Details
| public mixed __construct ( string $class, ?string $message = null, integer $code = 0, ?\ | ||
| $class | string | |
| $message | ?string | |
| $code | integer | |
| $previous | ?\ |
|
#[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 getSolution ( ) |
public function getSolution(): ?string
{
return 'Check if the class exists or if the class is properly defined.';
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.