Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\migrate\Plugin\Exception; | |
4 | |
5 use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException; | |
6 | |
7 /** | |
8 * Defines a class for bad plugin definition exceptions. | |
9 */ | |
10 class BadPluginDefinitionException extends InvalidPluginDefinitionException { | |
11 | |
12 /** | |
13 * Constructs a BadPluginDefinitionException. | |
14 * | |
15 * For the remaining parameters see \Exception. | |
16 * | |
17 * @param string $plugin_id | |
18 * The plugin ID of the mapper. | |
19 * @param string $property | |
20 * The name of the property that is missing from the plugin. | |
21 * | |
22 * @see \Exception | |
23 */ | |
24 public function __construct($plugin_id, $property, $code = 0, \Exception $previous = NULL) { | |
25 $message = sprintf('The %s plugin must define the %s property.', $plugin_id, $property); | |
26 parent::__construct($plugin_id, $message, $code, $previous); | |
27 } | |
28 | |
29 } |