You are here

protected function Migration::onException in Migrate 7.2

React when there is an exception

Parameters

\Exception $e: Exception.

1 call to Migration::onException()
Migration::import in includes/migration.inc
Perform an import operation - migrate items from source to destination.

File

includes/migration.inc, line 865
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 onException(\Exception $e) {
  $this->map
    ->saveIDMapping($this->sourceValues, array(), MigrateMap::STATUS_FAILED, $this->rollbackAction, NULL);
  $this
    ->handleException($e);
}