Skip to content

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.

View source

Public Properties ​

PropertyDescription
elementcraft\base\ElementInterface – The element

Public Methods ​

MethodDescription
__construct()Constructor.
getName()

__construct() ​

Constructor.

View source

Arguments ​

getName() ​

View source

Returns ​

string – The user-friendly name of this exception