Autogenerated
4 weeks ago
GraphQLEndpointRegistrar.php
4 weeks ago
OpcacheFileExpiry.php
4 weeks ago
QueryCache.php
4 weeks ago
QueryComplexityRule.php
4 weeks ago
QueryDepthRule.php
4 weeks ago
Settings.php
4 weeks ago
StatusResolverFailedException.php
4 weeks ago
StatusResolverFailedException.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Internal\Api; |
| 6 | |
| 7 | /** |
| 8 | * Internal sentinel raised by {@see GraphQLController::pick_status()} when a |
| 9 | * plugin-supplied HTTP status resolver throws. |
| 10 | * |
| 11 | * The resolver is documented as "must not throw"; this exception lets the |
| 12 | * controller distinguish a resolver bug from any other Throwable so it can |
| 13 | * short-circuit to a fixed-shape 500 response without re-invoking the |
| 14 | * resolver. Never surfaced on the wire. |
| 15 | * |
| 16 | * @internal |
| 17 | */ |
| 18 | final class StatusResolverFailedException extends \RuntimeException { |
| 19 | } |
| 20 |