InvalidFieldException
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\InvalidFieldException » yii\base\Exception (opens new window) » Exception (opens new window)
- Since
- 3.5.12
InvalidFieldException represents an exception caused by accessing a field handle that doesn’t exist.
View source (opens new window)
# Public Properties
Property | Description |
---|---|
handle | string (opens new window) – The invalid field handle. |
# handle
- Type
- string (opens new window)
- Default value
null
The invalid field handle.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__construct() | Constructor. |
getName() |
# __construct()
Constructor.
View source (opens new window)
Arguments
$handle
(string (opens new window)) – The field handle$message
(string (opens new window), null (opens new window)) – The error message$code
(integer (opens new window)) – The error code$previous
(Throwable (opens new window), null (opens new window)) – The previous exception
# getName()
View source (opens new window)
Returns
string (opens new window) – The user-friendly name of this exception