InvalidElementException

Type
Class
Namespace
craft\errors
Inherits
craft\errors\InvalidElementException » craft\errors\ElementException » yii\base\Exception (opens new window) » Exception (opens new window)
Since
3.0.0

InvalidElementException represents an exception caused by setting an invalid element.

View source (opens new window)

# Public Properties

Property Description
element craft\base\ElementInterface – The element

# Public Methods

Method Description
__construct() Constructor.
getName()

# __construct()

Constructor.

View source (opens new window)

Arguments

# getName()

View source (opens new window)

Returns

string (opens new window) – The user-friendly name of this exception