From aeea1df04b321316cb137bfc5ac2ff3ec7aa86a1 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Wed, 30 Aug 2017 21:27:36 +0200 Subject: [PATCH] Exception - InvalidUrlException - an exception used while url is invalid --- .../Exception/Regex/InvalidUrlException.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Meritoo/Common/Exception/Regex/InvalidUrlException.php diff --git a/src/Meritoo/Common/Exception/Regex/InvalidUrlException.php b/src/Meritoo/Common/Exception/Regex/InvalidUrlException.php new file mode 100644 index 0000000..ba658e7 --- /dev/null +++ b/src/Meritoo/Common/Exception/Regex/InvalidUrlException.php @@ -0,0 +1,23 @@ + + * @copyright Meritoo.pl + */ +class InvalidUrlException extends \Exception +{ + /** + * Class constructor + * + * @param string $url Invalid url + */ + public function __construct($url) + { + $message = sprintf('Url \'%s\' is invalid. Is there everything ok?', $url); + parent::__construct($message); + } +}