3 namespace Drupal\Component\Plugin\Exception;
6 * Defines a class for invalid plugin definition exceptions.
8 class InvalidPluginDefinitionException extends PluginException {
11 * The plugin ID of the mapper.
18 * Constructs a InvalidPluginDefinitionException.
20 * For the remaining parameters see \Exception.
22 * @param string $plugin_id
23 * The plugin ID of the mapper.
27 public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
28 $this->pluginId = $plugin_id;
29 parent::__construct($message, $code, $previous);
33 * Gets the plugin ID of the mapper that raised the exception.
38 public function getPluginId() {
39 return $this->pluginId;