sciphp/numphp

View on GitHub
src/SciPhp/Exception/InvalidAttributeException.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace SciPhp\Exception;

use Exception;

final class InvalidAttributeException extends Exception
{
    public function __construct(string $class, string $attribute)
    {
        $message = sprintf(
            Message::ATTR_NOT_DEFINED,
            $attribute,
            $class
        );

        parent::__construct($message, 0, null);
    }
}