Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AuditException.php

function 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\Audit

Code

public function __construct(MigrationInterface $migration, $message, ?\Exception $previous = NULL) {
    $message = sprintf('Cannot audit migration %s: %s', $migration->id(), $message);
    parent::__construct($message, 0, $previous);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal