You are here

FileMetadataException.php in File metadata manager 8.2

Same filename and directory in other branches
  1. 8 src/FileMetadataException.php

Namespace

Drupal\file_mdm

File

src/FileMetadataException.php
View source
<?php

namespace Drupal\file_mdm;


/**
 * Exception thrown by file_mdm and plugins on failures.
 */
class FileMetadataException extends \Exception {

  /**
   * Constructs a FileMetadataException object.
   */
  public function __construct($message, $plugin_id = NULL, $method = NULL, \Exception $previous = NULL) {
    $msg = $message;
    $msg .= $plugin_id ? " (plugin: {$plugin_id})" : "";
    $msg .= $method ? " (method: {$method})" : "";
    parent::__construct($msg, 0, $previous);
  }

}

Classes

Namesort descending Description
FileMetadataException Exception thrown by file_mdm and plugins on failures.