ElementException ​
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\ElementException » yii\base\Exception » Exception
- Extended by
- craft\errors\InvalidElementException, craft\errors\UnsupportedSiteException
- Since
- 3.4.29
ElementException represents an exception involving an element.
Public Properties ​
Property | Description |
---|---|
element | craft\base\ElementInterface – The element |
element
​
- Type
- craft\base\ElementInterface
- Default value
null
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