WooCommerce Code Reference

Error.php

Source code

<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Infrastructure\Schema;

/**
 * Stable subclass of the underlying GraphQL engine's Error, used by
 * autogenerated resolvers when they need to surface a GraphQL-spec error
 * directly (e.g. the UNAUTHORIZED error an autogenerated authorize()-backed
 * resolver throws before invoking the command).
 *
 * Behaviour is inherited verbatim, including the named `extensions`
 * argument that callers rely on to attach an error code.
 */
class Error extends \Automattic\WooCommerce\Vendor\GraphQL\Error\Error {
}