Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / Exception / MissingValueContextException.php
diff --git a/web/core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php b/web/core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php
new file mode 100644 (file)
index 0000000..67b5d92
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\Component\Plugin\Exception;
+
+/**
+ * An exception class thrown when contexts exist but are missing a value.
+ */
+class MissingValueContextException extends ContextException {
+
+  /**
+   * MissingValueContextException constructor.
+   *
+   * @param string[] $contexts_without_value
+   *   List of contexts with missing value.
+   */
+  public function __construct(array $contexts_without_value = []) {
+    $message = 'Required contexts without a value: ' . implode(', ', $contexts_without_value);
+    parent::__construct($message);
+  }
+
+}