Automattic\WooCommerce\Vendor\GraphQL\Error

SyntaxError{}WC 1.0└─ Error

No Hooks.

Usage

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

Methods

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

SyntaxError{} code WC 10.9.4

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