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