MissingAssetException
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\MissingAssetException » yii\base\Exception (opens new window) » Exception (opens new window)
- Since
- 3.2.0
MissingAssetException represents an exception caused by an asset record that doesn't exist.
View source (opens new window)
# Public Properties
Property | Description |
---|---|
filename | string (opens new window) |
folder | craft\models\VolumeFolder |
indexEntry | craft\models\AssetIndexData |
volume | craft\models\Volume |
# filename
- Type
- string (opens new window)
- Default value
null
View source (opens new window)
# folder
- Type
- craft\models\VolumeFolder
- Default value
null
View source (opens new window)
# indexEntry
- Type
- craft\models\AssetIndexData
- Default value
null
View source (opens new window)
# volume
- Type
- craft\models\Volume
- Default value
null
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__construct() | Constructor |
getName() |
# __construct()
Constructor
View source (opens new window)
Arguments
$indexEntry
(craft\models\AssetIndexData)$volume
(craft\models\Volume)$folder
(craft\models\VolumeFolder)$filename
(string (opens new window))$message
(string (opens new window))$code
(integer (opens new window))$previous
(Throwable (opens new window), null (opens new window))
# getName()
View source (opens new window)
Returns
string (opens new window) – The user-friendly name of this exception