Automattic\WooCommerce\Vendor\GraphQL\Error

SyntaxError{}WC 1.0└─ Error

Хуков нет.

Использование

$SyntaxError = new SyntaxError();
// use class methods

Методы

  1. public __construct(Source $source, int $position, string $description)

Код SyntaxError{} WC 10.9.1

class SyntaxError extends Error
{
    public function __construct(Source $source, int $position, string $description)
    {
        parent::__construct(
            "Syntax Error: {$description}",
            null,
            $source,
            [$position]
        );
    }
}