Regex - move exceptions related to regular expressions to namespace with "Regex"

This commit is contained in:
Meritoo
2017-08-30 21:19:29 +02:00
parent ecaebcca0e
commit b5e63ff619
4 changed files with 9 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
* file that was distributed with this source code.
*/
namespace Meritoo\Common\Exception;
namespace Meritoo\Common\Exception\Regex;
/**
* An exception used while length of given hexadecimal value of color is incorrect

View File

@@ -6,10 +6,10 @@
* file that was distributed with this source code.
*/
namespace Meritoo\Common\Exception;
namespace Meritoo\Common\Exception\Regex;
/**
* An exception used while given hexadecimal value of color is incorrect
* An exception used while given hexadecimal value of color is invalid
*
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
* @copyright Meritoo.pl
@@ -19,11 +19,11 @@ class InvalidColorHexValueException extends \Exception
/**
* Class constructor
*
* @param string $color Incorrect hexadecimal value of color
* @param string $color Invalid hexadecimal value of color
*/
public function __construct($color)
{
$message = sprintf('Hexadecimal value of color \'%s\' is incorrect. Is there everything ok?', $color);
$message = sprintf('Hexadecimal value of color \'%s\' is invalid. Is there everything ok?', $color);
parent::__construct($message);
}
}

View File

@@ -8,8 +8,8 @@
namespace Meritoo\Common\Utilities;
use Meritoo\Common\Exception\IncorrectColorHexLengthException;
use Meritoo\Common\Exception\InvalidColorHexValueException;
use Meritoo\Common\Exception\Regex\IncorrectColorHexLengthException;
use Meritoo\Common\Exception\Regex\InvalidColorHexValueException;
/**
* Useful regular expressions methods

View File

@@ -9,8 +9,8 @@
namespace Meritoo\Common\Tests\Utilities;
use Generator;
use Meritoo\Common\Exception\IncorrectColorHexLengthException;
use Meritoo\Common\Exception\InvalidColorHexValueException;
use Meritoo\Common\Exception\Regex\IncorrectColorHexLengthException;
use Meritoo\Common\Exception\Regex\InvalidColorHexValueException;
use Meritoo\Common\Utilities\Locale;
use Meritoo\Common\Utilities\Miscellaneous;
use Meritoo\Common\Utilities\TestCase;