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