aboutsummaryrefslogtreecommitdiff
path: root/app/models/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/Exception')
-rw-r--r--app/models/Exception/EntriesGetterException.php7
-rw-r--r--app/models/Exception/FeedException.php6
2 files changed, 13 insertions, 0 deletions
diff --git a/app/models/Exception/EntriesGetterException.php b/app/models/Exception/EntriesGetterException.php
new file mode 100644
index 000000000..3a51bff7c
--- /dev/null
+++ b/app/models/Exception/EntriesGetterException.php
@@ -0,0 +1,7 @@
+<?php
+
+class EntriesGetterException extends Exception {
+ public function __construct ($message) {
+ parent::__construct ($message);
+ }
+}
diff --git a/app/models/Exception/FeedException.php b/app/models/Exception/FeedException.php
index 3fe0f4ea0..bc61e1736 100644
--- a/app/models/Exception/FeedException.php
+++ b/app/models/Exception/FeedException.php
@@ -5,3 +5,9 @@ class FeedException extends Exception {
parent::__construct ($message);
}
}
+
+class BadUrlException extends FeedException {
+ public function __construct ($url) {
+ parent::__construct ('`' . $url . '` is not a valid URL');
+ }
+}