InvalidElementException

Type
Class
Namespace
craft\errors
Inherits
craft\errors\InvalidElementException » yii\base\Exception » Exception
Since
3.0

InvalidElementException represents an exception caused by setting an invalid element.

View source

Public Properties

PropertyDescription
elementcraft\base\ElementInterface, craft\base\Element – The element

element

Type
craft\base\ElementInterface, craft\base\Element

The element

View source

Public Methods

MethodDescription
__construct()Constructor.
getName()

__construct()

Constructor.

View source

Arguments

getName()

View source

Returns

string – The user-friendly name of this exception