mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Refactor controller add feed
This commit is contained in:
14
app/Exceptions/FeedNotAddedException.php
Normal file
14
app/Exceptions/FeedNotAddedException.php
Normal file
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user