public function MigrateException::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/MigrateException.php \Drupal\migrate\MigrateException::__construct()
- 9 core/modules/migrate/src/MigrateException.php \Drupal\migrate\MigrateException::__construct()
Constructs a MigrateException object.
Parameters
string $message: The message for the exception.
int $code: The Exception code.
\Exception $previous: The previous exception used for the exception chaining.
int $level: The level of the error, a Migration::MESSAGE_* constant.
int $status: The status of the item for the map table, a MigrateMap::STATUS_* constant.
1 method overrides MigrateException::__construct()
- EntityValidationException::__construct in core/
modules/ migrate/ src/ Exception/ EntityValidationException.php - EntityValidationException constructor.
File
- core/
modules/ migrate/ src/ MigrateException.php, line 46
Class
- MigrateException
- Defines the migrate exception class.
Namespace
Drupal\migrateCode
public function __construct($message = '', $code = 0, \Exception $previous = NULL, $level = MigrationInterface::MESSAGE_ERROR, $status = MigrateIdMapInterface::STATUS_FAILED) {
$this->level = $level;
$this->status = $status;
parent::__construct($message);
}