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

Breadcrumb

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

class AuditException

Defines an exception to throw if an error occurs during a migration audit.

Hierarchy

  • class \Drupal\migrate\Audit\AuditException extends \Drupal\migrate\Audit\RuntimeException

Expanded class hierarchy of AuditException

File

core/modules/migrate/src/Audit/AuditException.php, line 10

Namespace

Drupal\migrate\Audit
View source
class AuditException extends \RuntimeException {
    
    /**
     * AuditException constructor.
     *
     * @param \Drupal\migrate\Plugin\MigrationInterface $migration
     *   The migration that caused the exception.
     * @param string $message
     *   The reason the audit failed.
     * @param \Exception $previous
     *   (optional) The previous exception.
     */
    public function __construct(MigrationInterface $migration, $message, ?\Exception $previous = NULL) {
        $message = sprintf('Cannot audit migration %s: %s', $migration->id(), $message);
        parent::__construct($message, 0, $previous);
    }

}

Members

Title Sort descending Modifiers Object type Summary
AuditException::__construct public function AuditException constructor.

API Navigation

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