MigrationException
- Type
- Class
- Namespace
- craft\errors
- Inherits
- craft\errors\MigrationException » yii\base\Exception » Exception
- Since
- 3.0.0
MigrationException represents an exception thrown while executing a migration.
# Public Properties
Property | Description |
---|---|
migration | yii\db\Migration – The migration being executed |
output | string, null – The migration output |
# migration
- Type
- yii\db\Migration
- Default value
null
The migration being executed
# output
The migration output
# Public Methods
Method | Description |
---|---|
__construct() | Constructor. |
getName() |
# __construct()
Constructor.
Arguments
$migration
(yii\db\Migration) – The migration being executed$output
(string, null) – The migration output$message
(string, null) – The error message$code
(integer) – The error code$previous
(Throwable, null) – The previous exception
# getName()
Returns
string – The user-friendly name of this exception