Files
FreshRSS/app/models/Exception/FeedException.php
2013-05-12 16:51:45 +02:00

20 lines
421 B
PHP

<?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');
}
}