Skip to content

MigrateException ​

Type
Class
Namespace
craft\errors
Inherits
craft\errors\MigrateException » yii\base\Exception » Exception
Since
3.0.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
Default value
null

The handle of the thing being updated

View source

ownerName ​

Type
string
Default value
null

The name of the thing being updated

View source

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

getName() ​

View source

Returns ​

string – The user-friendly name of this exception