function MigrateSkipRowException::__construct

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.