mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-06 11:10:42 +00:00
12 lines
282 B
PHP
12 lines
282 B
PHP
<?php
|
|
class AttributeException extends Exception {
|
|
public function __construct(
|
|
$attribute,
|
|
$message = 'Атрибут %s не определен'
|
|
)
|
|
{
|
|
$message = sprintf($message, $attribute);
|
|
parent::__construct($message, 1001);
|
|
}
|
|
}
|