FreshRSS/app/Exceptions/FeedNotAddedException.php

17 lines
303 B
PHP
Raw Normal View History

2016-09-24 23:29:49 +02:00
<?php
declare(strict_types=1);
2016-09-24 23:29:49 +02:00
class FreshRSS_FeedNotAdded_Exception extends Exception {
private string $url = '';
2016-09-24 23:29:49 +02:00
public function __construct(string $url) {
2016-09-24 23:29:49 +02:00
parent::__construct('Feed not added! ' . $url, 2147);
$this->url = $url;
2016-09-24 23:29:49 +02:00
}
public function url(): string {
return $this->url;
2016-09-24 23:29:49 +02:00
}
}