MigrationException

Type
Class
Namespace
craft\errors
Inherits
craft\errors\MigrationException » yii\base\Exception » Exception
Since
3.0

MigrationException represents an exception thrown while executing a migration.

View source

Public Properties

PropertyDescription
$migrationyii\db\Migration – The migration being executed
$outputstring, null – The migration output

$migration

Type
yii\db\Migration

The migration being executed

View source

Signature

public yii\db\Migration $migration = null

$output

Type
string, null

The migration output

View source

Signature

public string, null $output = null

Public Methods

MethodDescription
__construct()Constructor.
getName()

__construct()

Constructor.

View source

Arguments

Signature

public void __construct ( yii\db\Migration $migration, \craft\errors\string $output = null, \craft\errors\string $message = null, \craft\errors\int $code = 0, Throwable $previous = null )

getName()

View source

Returns

string – The user-friendly name of this exception

Signature

public string getName ( )