You are here

public function MigrateSkipRowException::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/MigrateSkipRowException.php \Drupal\migrate\MigrateSkipRowException::__construct()

Constructs a MigrateSkipRowException object.

Parameters

string $message: The message for the exception.

bool $save_to_map: TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently.

File

core/modules/migrate/src/MigrateSkipRowException.php, line 26

Class

MigrateSkipRowException
This exception is thrown when a row should be skipped.

Namespace

Drupal\migrate

Code

public function __construct($message = NULL, $save_to_map = TRUE) {
  parent::__construct($message);
  $this->saveToMap = $save_to_map;
}