summaryrefslogtreecommitdiff
path: root/app/models/Exception/FeedException.php
blob: bff297eb9a6ea7939e974b18dd81ad403c0aca0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

class FeedException extends Exception {
	public function __construct ($message) {
		parent::__construct ($message);
	}
}

class BadUrlException extends FeedException {
	public function __construct ($url) {
		parent::__construct ('`' . $url . '` is not a valid URL');
	}
}

class OpmlException extends FeedException {
	public function __construct ($name_file) {
		parent::__construct ('OPML file is invalid');
	}
}