Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / file_mdm / src / FileMetadataException.php
1 <?php
2
3 namespace Drupal\file_mdm;
4
5 /**
6  * Exception thrown by file_mdm and plugins on failures.
7  */
8 class FileMetadataException extends \Exception {
9
10   /**
11    * Constructs a FileMetadataException object.
12    */
13   public function __construct($message, $plugin_id = NULL, $method = NULL, \Exception $previous = NULL) {
14     $msg = $message;
15     $msg .= $plugin_id ? " (plugin: {$plugin_id})" : "";
16     $msg .= $method ? " (method: {$method})" : "";
17     parent::__construct($msg, 0, $previous);
18   }
19
20 }