<?php

declare(strict_types=1);

namespace Plugin\tnt_mcp\src\Mcp\Backend;

use RuntimeException;

/**
 * The acting admin does not hold the permission the catalog entry declares.
 *
 * `AdminIO::execute()` (AdminIO.php:54-57) answers this with an `IOError(…, 401)` because it is
 * writing an HTTP response. We throw instead: there is no response to write, and an `adminIo`
 * invocation that returned a normal-looking result carrying a 401 payload is precisely the shape a
 * caller would mistake for success.
 */
final class PermissionDeniedException extends RuntimeException
{
}
