Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/src/MigrateSkipRowException.php \Drupal\migrate\MigrateSkipRowException::__construct()
  2. 9 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 30

Class

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

Namespace

Drupal\migrate

Code

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