diff options
| author | 2016-09-24 23:29:49 +0200 | |
|---|---|---|
| committer | 2016-09-24 23:29:49 +0200 | |
| commit | 324c83348ca44f3c13f4e0efeea25bbc96ed3b05 (patch) | |
| tree | a1d5d07e6b9e463a5ecb69df81de117d2a32839d /app/Exceptions/AlreadySubscribedException.php | |
| parent | 0a79d4085b18c5607438f8ebd56543508e7db3a8 (diff) | |
Refactor controller add feed
Diffstat (limited to 'app/Exceptions/AlreadySubscribedException.php')
| -rw-r--r-- | app/Exceptions/AlreadySubscribedException.php | 14 |
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..f85d51300 --- /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(); + } +} |
