aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions/ZipException.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Exceptions/ZipException.php')
-rw-r--r--app/Exceptions/ZipException.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/Exceptions/ZipException.php b/app/Exceptions/ZipException.php
new file mode 100644
index 000000000..8441daedf
--- /dev/null
+++ b/app/Exceptions/ZipException.php
@@ -0,0 +1,14 @@
+<?php
+
+class FreshRSS_Zip_Exception extends Exception {
+ private $zipErrorCode = 0;
+
+ public function __construct($zipErrorCode) {
+ parent::__construct('ZIP error! ' . $url, 2141);
+ $this->zipErrorCode = $zipErrorCode;
+ }
+
+ public function zipErrorCode() {
+ return $this->zipErrorCode;
+ }
+}