protected function Migration::onMigrateException in Migrate 7.2
React when there is a migrate exception
Parameters
\MigrateException $e: Exception.
1 call to Migration::onMigrateException()
- Migration::import in includes/
migration.inc - Perform an import operation - migrate items from source to destination.
File
- includes/
migration.inc, line 852 - Defines the base class for import/rollback processes.
Class
- Migration
- The base class for all import objects. This is where most of the smarts of the migrate module resides. Migrations are created by deriving from this class, and in the constructor (after calling parent::__construct()) initializing at a minimum the name,…
Code
protected function onMigrateException(\MigrateException $e, $data_row) {
$this->map
->saveIDMapping($this->sourceValues, array(), $e
->getStatus(), $this->rollbackAction, $data_row->migrate_map_hash);
$this
->saveMessage($e
->getMessage(), $e
->getLevel());
self::displayMessage($e
->getMessage());
}