aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-11-04 20:26:30 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2015-11-04 20:26:30 +0100
commit74639cb1535feddb808a4262e058a67d4a3aef6b (patch)
tree78c5567578751752a3623574cbd768e602a46754 /app/Exceptions
parent4c99fd689f0778cbf6a987471ebf72b3787739c2 (diff)
parent4525e547faa8781e37f86125110f28248eb67fd3 (diff)
Merge branch 'dev'
Diffstat (limited to 'app/Exceptions')
-rw-r--r--app/Exceptions/BadUrlException.php3
-rw-r--r--app/Exceptions/ContextException.php4
-rw-r--r--app/Exceptions/DAOException.php5
-rw-r--r--app/Exceptions/EntriesGetterException.php4
-rw-r--r--app/Exceptions/FeedException.php5
5 files changed, 12 insertions, 9 deletions
diff --git a/app/Exceptions/BadUrlException.php b/app/Exceptions/BadUrlException.php
index 59574e1e5..d2509e4ba 100644
--- a/app/Exceptions/BadUrlException.php
+++ b/app/Exceptions/BadUrlException.php
@@ -1,6 +1,9 @@
<?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/ContextException.php b/app/Exceptions/ContextException.php
index 357751b7c..00934cbfd 100644
--- a/app/Exceptions/ContextException.php
+++ b/app/Exceptions/ContextException.php
@@ -4,7 +4,5 @@
* An exception raised when a context is invalid
*/
class FreshRSS_Context_Exception extends Exception {
- public function __construct($message) {
- parent::__construct($message);
- }
+
}
diff --git a/app/Exceptions/DAOException.php b/app/Exceptions/DAOException.php
new file mode 100644
index 000000000..14bee3403
--- /dev/null
+++ b/app/Exceptions/DAOException.php
@@ -0,0 +1,5 @@
+<?php
+
+class FreshRSS_DAO_Exception extends Exception {
+
+}
diff --git a/app/Exceptions/EntriesGetterException.php b/app/Exceptions/EntriesGetterException.php
index 5f47c830b..3b76195ee 100644
--- a/app/Exceptions/EntriesGetterException.php
+++ b/app/Exceptions/EntriesGetterException.php
@@ -1,7 +1,5 @@
<?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
index 2433b3964..abfcbce79 100644
--- a/app/Exceptions/FeedException.php
+++ b/app/Exceptions/FeedException.php
@@ -1,6 +1,5 @@
<?php
+
class FreshRSS_Feed_Exception extends Exception {
- public function __construct($message) {
- parent::__construct($message);
- }
+
}