MigrationException

Type
Class
Namespace
craft\errors
Inherits
craft\errors\MigrationException » yii\base\Exception (opens new window) » Exception (opens new window)
Since
3.0.0

MigrationException represents an exception thrown while executing a migration.

View source (opens new window)

# Public Properties

Property Description
migration yii\db\Migration (opens new window) – The migration being executed
output string (opens new window), null (opens new window) – The migration output

# migration

Type
yii\db\Migration (opens new window)
Default value
null

The migration being executed

View source (opens new window)

# output

Type
string (opens new window), null (opens new window)
Default value
null

The migration output

View source (opens new window)

# Public Methods

Method Description
__construct() Constructor.
getName()

# __construct()

Constructor.

View source (opens new window)

Arguments

# getName()

View source (opens new window)

Returns

string (opens new window) – The user-friendly name of this exception