diff options
| author | 2015-01-31 14:45:37 +0100 | |
|---|---|---|
| committer | 2015-01-31 14:45:37 +0100 | |
| commit | a97bbd9bd54c5fa56d54b3c214cf4e8af96af8b2 (patch) | |
| tree | 6e83890bc1b3814a12c3b7bedc0d5944f30f507b /app/Exceptions | |
| parent | 42fd539a1b14f883077048a35864b4294b6efe94 (diff) | |
| parent | e91b72b63cd11ae3c4f59e48439e93955242c673 (diff) | |
Merge branch 'dev'
Conflicts:
CHANGELOG
README.fr.md
README.md
app/Controllers/feedController.php
app/Controllers/indexController.php
app/i18n/en.php
app/i18n/fr.php
app/views/helpers/view/normal_view.phtml
app/views/stats/index.phtml
app/views/stats/repartition.phtml
constants.php
p/scripts/main.js
Diffstat (limited to 'app/Exceptions')
| -rw-r--r-- | app/Exceptions/BadUrlException.php | 4 | ||||
| -rw-r--r-- | app/Exceptions/ContextException.php | 10 | ||||
| -rw-r--r-- | app/Exceptions/EntriesGetterException.php | 4 | ||||
| -rw-r--r-- | app/Exceptions/FeedException.php | 4 |
4 files changed, 16 insertions, 6 deletions
diff --git a/app/Exceptions/BadUrlException.php b/app/Exceptions/BadUrlException.php index 7d1fe110e..59574e1e5 100644 --- a/app/Exceptions/BadUrlException.php +++ b/app/Exceptions/BadUrlException.php @@ -1,6 +1,6 @@ <?php class FreshRSS_BadUrl_Exception extends FreshRSS_Feed_Exception { - public function __construct ($url) { - parent::__construct ('`' . $url . '` is not a valid URL'); + public function __construct($url) { + parent::__construct('`' . $url . '` is not a valid URL'); } } diff --git a/app/Exceptions/ContextException.php b/app/Exceptions/ContextException.php new file mode 100644 index 000000000..357751b7c --- /dev/null +++ b/app/Exceptions/ContextException.php @@ -0,0 +1,10 @@ +<?php + +/** + * 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/EntriesGetterException.php b/app/Exceptions/EntriesGetterException.php index eaa330979..5f47c830b 100644 --- a/app/Exceptions/EntriesGetterException.php +++ b/app/Exceptions/EntriesGetterException.php @@ -1,7 +1,7 @@ <?php class FreshRSS_EntriesGetter_Exception extends Exception { - public function __construct ($message) { - parent::__construct ($message); + public function __construct($message) { + parent::__construct($message); } } diff --git a/app/Exceptions/FeedException.php b/app/Exceptions/FeedException.php index 50918ba95..2433b3964 100644 --- a/app/Exceptions/FeedException.php +++ b/app/Exceptions/FeedException.php @@ -1,6 +1,6 @@ <?php class FreshRSS_Feed_Exception extends Exception { - public function __construct ($message) { - parent::__construct ($message); + public function __construct($message) { + parent::__construct($message); } } |
