3 namespace Drupal\migrate;
6 * This exception is thrown when a row should be skipped.
8 class MigrateSkipRowException extends \Exception {
11 * Whether to record the skip in the map table, or skip silently.
14 * TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently.
19 * Constructs a MigrateSkipRowException object.
21 * @param string $message
22 * The message for the exception.
23 * @param bool $save_to_map
24 * TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently.
26 public function __construct($message = NULL, $save_to_map = TRUE) {
27 parent::__construct($message);
28 $this->saveToMap = $save_to_map;
32 * Whether the thrower wants to record this skip in the map table.
35 * TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently.
37 public function getSaveToMap() {
38 return $this->saveToMap;