Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Tester / Exception / WrongPathsException.php
diff --git a/vendor/behat/behat/src/Behat/Testwork/Tester/Exception/WrongPathsException.php b/vendor/behat/behat/src/Behat/Testwork/Tester/Exception/WrongPathsException.php
new file mode 100644 (file)
index 0000000..c429957
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+
+/*
+ * This file is part of the Behat.
+ * (c) Konstantin Kudryashov <ever.zet@gmail.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Behat\Testwork\Tester\Exception;
+
+use Symfony\Component\DependencyInjection\Exception\RuntimeException;
+
+/**
+ * Represents exception caused by a wrong paths argument.
+ *
+ * @author Konstantin Kudryashov <ever.zet@gmail.com>
+ */
+final class WrongPathsException extends RuntimeException implements TesterException
+{
+    /**
+     * @var string
+     */
+    private $path;
+
+    /**
+     * Initializes exception.
+     *
+     * @param string $message
+     * @param string $path
+     */
+    public function __construct($message, $path)
+    {
+        parent::__construct($message);
+
+        $this->path = $path;
+    }
+
+    /**
+     * Returns path that caused exception.
+     *
+     * @return string
+     */
+    public function getPath()
+    {
+        return $this->path;
+    }
+}