aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions/AlreadySubscribedException.php
blob: 8e2eaa13a3feee56be8e2f8094238d6f6f866dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
declare(strict_types=1);

class FreshRSS_AlreadySubscribed_Exception extends Minz_Exception {

	private string $feedName = '';

	public function __construct(string $url, string $feedName) {
		parent::__construct('Already subscribed! ' . $url, 2135);
		$this->feedName = $feedName;
	}

	public function feedName(): string {
		return $this->feedName;
	}
}