MigrateException

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

MigrateException represents an error that occurred while migrating Craft or a plugin.

View source

Public Properties

PropertyDescription
$ownerHandlestring – The handle of the thing being updated
$ownerNamestring – The name of the thing being updated

$ownerHandle

Type
string

The handle of the thing being updated

View source

Signature

public string $ownerHandle = null

$ownerName

Type
string

The name of the thing being updated

View source

Signature

public string $ownerName = null

Public Methods

MethodDescription
__construct()Constructor.
getName()

__construct()

Constructor.

View source

Arguments

  • $ownerName (string) – The name of the thing being updated
  • $ownerHandle (string) – The handle of the thing being updated
  • $message (string, null) – The error message
  • $code (integer) – The error code
  • $previous (Throwable, null) – The previous exception

Signature

public void __construct ( \craft\errors\string $ownerName, \craft\errors\string $ownerHandle, \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 ( )