diff options
Diffstat (limited to 'app/Exceptions')
| -rw-r--r-- | app/Exceptions/BadUrlException.php | 6 | ||||
| -rw-r--r-- | app/Exceptions/EntriesGetterException.php | 7 | ||||
| -rw-r--r-- | app/Exceptions/FeedException.php | 6 | ||||
| -rw-r--r-- | app/Exceptions/OpmlException.php | 6 |
4 files changed, 25 insertions, 0 deletions
diff --git a/app/Exceptions/BadUrlException.php b/app/Exceptions/BadUrlException.php new file mode 100644 index 000000000..7d1fe110e --- /dev/null +++ b/app/Exceptions/BadUrlException.php @@ -0,0 +1,6 @@ +<?php +class FreshRSS_BadUrl_Exception extends FreshRSS_Feed_Exception { + public function __construct ($url) { + parent::__construct ('`' . $url . '` is not a valid URL'); + } +} diff --git a/app/Exceptions/EntriesGetterException.php b/app/Exceptions/EntriesGetterException.php new file mode 100644 index 000000000..eaa330979 --- /dev/null +++ b/app/Exceptions/EntriesGetterException.php @@ -0,0 +1,7 @@ +<?php + +class FreshRSS_EntriesGetter_Exception extends Exception { + public function __construct ($message) { + parent::__construct ($message); + } +} diff --git a/app/Exceptions/FeedException.php b/app/Exceptions/FeedException.php new file mode 100644 index 000000000..50918ba95 --- /dev/null +++ b/app/Exceptions/FeedException.php @@ -0,0 +1,6 @@ +<?php +class FreshRSS_Feed_Exception extends Exception { + public function __construct ($message) { + parent::__construct ($message); + } +} diff --git a/app/Exceptions/OpmlException.php b/app/Exceptions/OpmlException.php new file mode 100644 index 000000000..e0ea3e493 --- /dev/null +++ b/app/Exceptions/OpmlException.php @@ -0,0 +1,6 @@ +<?php +class FreshRSS_Opml_Exception extends FreshRSS_Feed_Exception { + public function __construct ($name_file) { + parent::__construct ('OPML file is invalid'); + } +} |
