You are here

class FileMetadataException in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 src/FileMetadataException.php \Drupal\file_mdm\FileMetadataException

Exception thrown by file_mdm and plugins on failures.

Hierarchy

Expanded class hierarchy of FileMetadataException

4 files declare their use of FileMetadataException
ExifTagMapper.php in file_mdm_exif/src/ExifTagMapper.php
FileMetadataPluginBase.php in src/Plugin/FileMetadata/FileMetadataPluginBase.php
Font.php in file_mdm_font/src/Plugin/FileMetadata/Font.php
GetImageSize.php in src/Plugin/FileMetadata/GetImageSize.php

File

src/FileMetadataException.php, line 8

Namespace

Drupal\file_mdm
View source
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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FileMetadataException::__construct public function Constructs a FileMetadataException object.