summaryrefslogtreecommitdiffstats
path: root/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php')
-rw-r--r--vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php b/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php
new file mode 100644
index 0000000..1fbfdc5
--- /dev/null
+++ b/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php
@@ -0,0 +1,23 @@
+<?php
+
+declare(strict_types=1);
+
+namespace ZipStream\Exception;
+
+use ZipStream\Exception;
+
+/**
+ * This Exception gets invoked if a file wasn't found
+ */
+class FileNotReadableException extends Exception
+{
+ /**
+ * Constructor of the Exception
+ *
+ * @param String $path - The path which wasn't found
+ */
+ public function __construct(string $path)
+ {
+ parent::__construct("The file with the path $path isn't readable.");
+ }
+}