InvalidTypeException ​
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\InvalidTypeException » yii\base\Exception » Exception
- Since
- 3.0.0
Class InvalidTypeException
Public Properties ​
| Property | Description |
|---|---|
| class | class-string – The invalid class name |
| requiredType | class-string – The base class or interface that class was supposed to be |
class ​
- Type
class-string- Default value
null
The invalid class name
requiredType ​
- Type
class-string- Default value
null
The base class or interface that class was supposed to be
Public Methods ​
| Method | Description |
|---|---|
| __construct() | Constructor. |
| getName() |
__construct() ​
Constructor.
Arguments ​
$class(class-string) – The class that doesn’t exist or doesn’t extend/implement $requiredType$requiredType(class-string) – The base class or interface that $class was supposed to be$message(string, null) – The error message$code(integer) – The error code
getName() ​
Returns ​
string – The user-friendly name of this exception