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 – The element

$element

Signature

public craft\base\ElementInterface $element = null

Public Methods

MethodDescription
__construct()Constructor.
getName()

__construct()

Constructor.

View source

Arguments

Signature

public void __construct ( craft\base\ElementInterface $element, \craft\errors\string $message = null, \craft\errors\int $code = 0 )

getName()

View source

Returns

string – The user-friendly name of this exception

Signature

public string getName ( )