Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 129ea1e6d783 |
children |
rev | line source |
---|---|
Chris@17 | 1 <?php |
Chris@17 | 2 |
Chris@17 | 3 namespace Drupal\Component\Plugin\Exception; |
Chris@17 | 4 |
Chris@17 | 5 /** |
Chris@17 | 6 * An exception class thrown when contexts exist but are missing a value. |
Chris@17 | 7 */ |
Chris@17 | 8 class MissingValueContextException extends ContextException { |
Chris@17 | 9 |
Chris@17 | 10 /** |
Chris@17 | 11 * MissingValueContextException constructor. |
Chris@17 | 12 * |
Chris@17 | 13 * @param string[] $contexts_without_value |
Chris@17 | 14 * List of contexts with missing value. |
Chris@17 | 15 */ |
Chris@17 | 16 public function __construct(array $contexts_without_value = []) { |
Chris@17 | 17 $message = 'Required contexts without a value: ' . implode(', ', $contexts_without_value); |
Chris@17 | 18 parent::__construct($message); |
Chris@17 | 19 } |
Chris@17 | 20 |
Chris@17 | 21 } |