NotInstantiableException
API reference › yii › di › NotInstantiableException
NotInstantiableException represents an exception caused by incorrect dependency injection container configuration or usage.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | NotInstantiableException | |
getName() | NotInstantiableException |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(mixed $class, mixed $message = null, mixed $code = 0, mixed $previous = null)Parameters
| Parameter | Type | Description |
|---|---|---|
$class | mixed | |
$message | mixed | |
$code | mixed | |
$previous | mixed |
getName()
Section titled “getName() ”public function getName(): stringReturns
string: The user-friendly name of this exception