3 namespace Drupal\file_mdm;
6 * Exception thrown by file_mdm and plugins on failures.
8 class FileMetadataException extends \Exception {
11 * Constructs a FileMetadataException object.
13 public function __construct($message, $plugin_id = NULL, $method = NULL, \Exception $previous = NULL) {
15 $msg .= $plugin_id ? " (plugin: {$plugin_id})" : "";
16 $msg .= $method ? " (method: {$method})" : "";
17 parent::__construct($msg, 0, $previous);