• File: UnknownFieldException.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/elementor/vendor/wordpress/php-mcp-schema/src/Exception/UnknownFieldException.php
  • Date Modified: 11/05/2026 9:17 AM
  • File size: 324 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

declare(strict_types=1);

namespace WP\McpSchema\Exception;

final class UnknownFieldException extends SchemaException
{
    public static function forField(string $recordClass, string $field): self
    {
        return new self(sprintf('Field "%s" is not declared or present on %s.', $field, $recordClass));
    }
}