aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/vendor/symfony/filesystem/Exception
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-09 10:55:03 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-09 13:09:38 +0100
commit04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa (patch)
tree5c691241355c943a3c68ddb06b8cf8c60aa11319 /srcs/phpmyadmin/vendor/symfony/filesystem/Exception
parent7e0d85db834d6351ed85d01e5126ac31dc510b86 (diff)
downloadft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.gz
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.bz2
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.zip
phpmyadmin working
Diffstat (limited to 'srcs/phpmyadmin/vendor/symfony/filesystem/Exception')
-rw-r--r--srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php21
-rw-r--r--srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php34
-rw-r--r--srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php39
-rw-r--r--srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php27
-rw-r--r--srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php19
5 files changed, 140 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php
new file mode 100644
index 0000000..fc438d9
--- /dev/null
+++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php
@@ -0,0 +1,21 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Filesystem\Exception;
+
+/**
+ * Exception interface for all exceptions thrown by the component.
+ *
+ * @author Romain Neutron <imprec@gmail.com>
+ */
+interface ExceptionInterface extends \Throwable
+{
+}
diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php
new file mode 100644
index 0000000..48b6408
--- /dev/null
+++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php
@@ -0,0 +1,34 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Filesystem\Exception;
+
+/**
+ * Exception class thrown when a file couldn't be found.
+ *
+ * @author Fabien Potencier <fabien@symfony.com>
+ * @author Christian Gärtner <christiangaertner.film@googlemail.com>
+ */
+class FileNotFoundException extends IOException
+{
+ public function __construct(string $message = null, int $code = 0, \Throwable $previous = null, string $path = null)
+ {
+ if (null === $message) {
+ if (null === $path) {
+ $message = 'File could not be found.';
+ } else {
+ $message = sprintf('File "%s" could not be found.', $path);
+ }
+ }
+
+ parent::__construct($message, $code, $previous, $path);
+ }
+}
diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php
new file mode 100644
index 0000000..fea26e4
--- /dev/null
+++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php
@@ -0,0 +1,39 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Filesystem\Exception;
+
+/**
+ * Exception class thrown when a filesystem operation failure happens.
+ *
+ * @author Romain Neutron <imprec@gmail.com>
+ * @author Christian Gärtner <christiangaertner.film@googlemail.com>
+ * @author Fabien Potencier <fabien@symfony.com>
+ */
+class IOException extends \RuntimeException implements IOExceptionInterface
+{
+ private $path;
+
+ public function __construct(string $message, int $code = 0, \Throwable $previous = null, string $path = null)
+ {
+ $this->path = $path;
+
+ parent::__construct($message, $code, $previous);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getPath()
+ {
+ return $this->path;
+ }
+}
diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php
new file mode 100644
index 0000000..f9d4644
--- /dev/null
+++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php
@@ -0,0 +1,27 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Filesystem\Exception;
+
+/**
+ * IOException interface for file and input/output stream related exceptions thrown by the component.
+ *
+ * @author Christian Gärtner <christiangaertner.film@googlemail.com>
+ */
+interface IOExceptionInterface extends ExceptionInterface
+{
+ /**
+ * Returns the associated path for the exception.
+ *
+ * @return string|null The path
+ */
+ public function getPath();
+}
diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php
new file mode 100644
index 0000000..abadc20
--- /dev/null
+++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php
@@ -0,0 +1,19 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Filesystem\Exception;
+
+/**
+ * @author Christian Flothmann <christian.flothmann@sensiolabs.de>
+ */
+class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
+{
+}