UnsupportedSiteException
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\UnsupportedSiteException » craft\errors\ElementException » yii\base\Exception (opens new window) » Exception (opens new window)
- Since
- 3.4.29
Class UnsupportedSiteException
View source (opens new window)
# Public Properties
Property | Description |
---|---|
element | craft\base\ElementInterface – The element |
siteId | integer (opens new window) – The site ID that the element doesn’t support. |
# siteId
- Type
- integer (opens new window)
- Default value
null
The site ID that the element doesn’t support.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__construct() | Constructor. |
getName() |
# __construct()
Constructor.
View source (opens new window)
Arguments
$element
(craft\base\ElementInterface) – The element$siteId
(integer (opens new window)) – The site ID that the element doesn’t support$message
(string (opens new window), null (opens new window)) – The error message$code
(integer (opens new window)) – The error code
# getName()
View source (opens new window)
Returns
string (opens new window) – The user-friendly name of this exception