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

class FreshRSS_AlreadySubscribed_Exception extends Exception {

	/** @var string */
	private $feedName = '';

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

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