A free, self-hostable aggregator…
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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');
|
|
|
|
}
|
|
|
|
}
|