public function AuditException::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/src/Audit/AuditException.php \Drupal\migrate\Audit\AuditException::__construct()
- 10 core/modules/migrate/src/Audit/AuditException.php \Drupal\migrate\Audit\AuditException::__construct()
AuditException constructor.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration that caused the exception.
string $message: The reason the audit failed.
\Exception $previous: (optional) The previous exception.
File
- core/
modules/ migrate/ src/ Audit/ AuditException.php, line 22
Class
- AuditException
- Defines an exception to throw if an error occurs during a migration audit.
Namespace
Drupal\migrate\AuditCode
public function __construct(MigrationInterface $migration, $message, \Exception $previous = NULL) {
$message = sprintf('Cannot audit migration %s: %s', $migration
->id(), $message);
parent::__construct($message, 0, $previous);
}