You are here

public function FileMetadataException::__construct in File metadata manager 8

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

Constructs a FileMetadataException object.

File

src/FileMetadataException.php, line 13

Class

FileMetadataException
Exception thrown by file_mdm and plugins on failures.

Namespace

Drupal\file_mdm

Code

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);
}