diff options
Diffstat (limited to 'app/models/Exception/FeedException.php')
| -rw-r--r-- | app/models/Exception/FeedException.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/Exception/FeedException.php b/app/models/Exception/FeedException.php new file mode 100644 index 000000000..bc61e1736 --- /dev/null +++ b/app/models/Exception/FeedException.php @@ -0,0 +1,13 @@ +<?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'); + } +} |
