mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
24 lines
497 B
PHP
24 lines
497 B
PHP
<?php
|
|
|
|
namespace Meritoo\Common\Exception\Regex;
|
|
|
|
/**
|
|
* An exception used while url is invalid
|
|
*
|
|
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
|
* @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);
|
|
}
|
|
}
|