Skip to content

InvalidFieldException ​

Type
Class
Namespace
craft\errors
Inherits
craft\errors\InvalidFieldException » yii\base\Exception » Exception
Since
3.5.12

InvalidFieldException represents an exception caused by accessing a field handle that doesn’t exist.

View source

Public Properties ​

PropertyDescription
handlestring – The invalid field handle.

handle ​

Type
string
Default value
null

The invalid field handle.

View source

Public Methods ​

MethodDescription
__construct()Constructor.
getName()

__construct() ​

Constructor.

View source

Arguments ​

  • $handle (string) – The field handle
  • $message (string, null) – The error message
  • $code (integer) – The error code
  • $previous (Throwable, null) – The previous exception

getName() ​

View source

Returns ​

string – The user-friendly name of this exception