Automattic\WooCommerce\Vendor\GraphQL\Type

SchemaValidationContext::addErrorprivateWC 1.0

Method of the class: SchemaValidationContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->addError( $error ): void;
$error(Error) (required)
.

SchemaValidationContext::addError() code WC 11.0.1

private function addError(Error $error): void
{
    $this->errors[] = $error;
}