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