Class craft\errors\InvalidTypeException
- Inheritance
- craft\errors\InvalidTypeException » yii\base\Exception » Exception
- Available since version
- 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/errors/InvalidTypeException.php
Class InvalidTypeException
Property | Type | Description | Defined By |
---|---|---|---|
$class |
string, null | The invalid class name | craft\errors\InvalidTypeException |
$requiredType |
string, null | The base class or interface that $class was supposed to be | craft\errors\InvalidTypeException |
Method | Description | Defined By |
---|---|---|
__construct() |
Constructor. | craft\errors\InvalidTypeException |
getName() |
craft\errors\InvalidTypeException |
Property Details
$class
public property
#
The invalid class name
public string, null $class = null
$requiredType
public property
#
The base class or interface that $class was supposed to be
public string, null $requiredType = null
Method Details
__construct()
public method
#
Constructor.
public void __construct ( \craft\errors\string $handle, \craft\errors\string $requiredType, \craft\errors\string $message = null, \craft\errors\int $code = 0 )
$handle |
string | The class that doesn’t exist or doesn’t extend/implement $requiredType |
$requiredType |
string | The base class or interface that $class was supposed to be |
$message |
string, null | The error message |
$code |
integer | The error code |
getName()
public method
#
public string getName ( )
return | string | The user-friendly name of this exception |
---|