InvalidElementException ​
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\InvalidElementException » craft\errors\ElementException » yii\base\Exception » Exception
- Since
- 3.0.0
InvalidElementException represents an exception caused by setting an invalid element.
Public Properties ​
Property | Description |
---|---|
element | craft\base\ElementInterface – The element |
Public Methods ​
Method | Description |
---|---|
__construct() | Constructor. |
getName() |
__construct()
​
Constructor.
Arguments ​
$element
(craft\base\ElementInterface) – The element$message
(string, null) – The error message$code
(integer) – The error code
getName()
​
Returns ​
string – The user-friendly name of this exception