Exception - InvalidHtmlAttributesException - an exception used while html attributes are invalid

This commit is contained in:
Meritoo
2017-12-24 00:03:23 +01:00
parent 6753076937
commit d801e675fc
3 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
/**
* (c) Meritoo.pl, http://www.meritoo.pl
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Meritoo\Common\Exception\Regex;
/**
* An exception used while html attributes are invalid
*
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
* @copyright Meritoo.pl
*/
class InvalidHtmlAttributesException extends \Exception
{
/**
* Class constructor
*
* @param string $htmlAttributes Invalid html attributes
*/
public function __construct($htmlAttributes)
{
$message = sprintf('HTML attributes \'%s\' are invalid. Is there everything ok?', $htmlAttributes);
parent::__construct($message);
}
}