Files
wiosna-dev_common-library/src/Exception/Regex/InvalidHtmlAttributesException.php

30 lines
756 B
PHP

<?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);
}
}