mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
30 lines
756 B
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);
|
|
}
|
|
}
|