uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
errors
/
MigrationException.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\errors; use Throwable; use yii\base\UserException; use yii\db\Migration; /** * MigrationException represents an exception thrown while executing a migration. * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.0.0 */ class MigrationException extends UserException { /** * @var Migration The migration being executed */ public Migration $migration; /** * @var string|null The migration output */ public ?string $output = null; /** * Constructor. * * @param Migration $migration The migration being executed * @param string|null $output The migration output * @param string|null $message The error message * @param int $code The error code * @param Throwable|null $previous The previous exception */ public function __construct(Migration $migration, ?string $output = null, ?string $message = null, int $code = 0, ?Throwable $previous = null) { $this->migration = $migration; $this->output = $output; if ($message === null) { $message = 'An error occurred while executing the "' . get_class($migration) . ' migration' . ($previous ? ': ' . $previous->getMessage() : '.'); } parent::__construct($message, $code, $previous); } /** * @return string the user-friendly name of this exception */ public function getName(): string { return 'Migration Error'; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/errors/MigrationException.php