Version 1
[yaffs-website] / vendor / consolidation / output-formatters / src / Exception / UnknownFieldException.php
diff --git a/vendor/consolidation/output-formatters/src/Exception/UnknownFieldException.php b/vendor/consolidation/output-formatters/src/Exception/UnknownFieldException.php
new file mode 100644 (file)
index 0000000..3fab41d
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+namespace Consolidation\OutputFormatters\Exception;
+
+/**
+ * Indicates that the requested format does not exist.
+ */
+class UnknownFieldException extends \Exception
+{
+    public function __construct($field)
+    {
+        $message = "The requested field, '$field', is not defined.";
+        parent::__construct($message, 1);
+    }
+}