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

declare(strict_types=1);

namespace WP\McpSchema\Exception;

final class UnsupportedRevisionException extends SchemaException
{
    /**
     * @param array<int, string> $supported
     */
    public static function forRevision(string $revision, array $supported): self
    {
        return new self(
            sprintf(
                'Unsupported MCP revision "%s". Supported revisions: %s.',
                $revision,
                implode(', ', $supported)
            )
        );
    }
}