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

Property Description
element craft\base\ElementInterface – The element

# Public Methods

Method Description
__construct() Constructor.
getName()

# __construct()

Constructor.

View source

Arguments

# getName()

View source

Returns

string – The user-friendly name of this exception