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

class FreshRSS_AlreadySubscribed_Exception extends Minz_Exception {

	public function __construct(string $url, private readonly string $feedName) {
		parent::__construct('Already subscribed! ' . $url, 2135);
	}

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