@graphql-tools/graphql
Version:
Fork of GraphQL.js
10 lines (9 loc) • 547 B
TypeScript
import type { Maybe } from '../jsutils/Maybe.js';
import type { ASTNode } from '../language/ast.js';
import { GraphQLError } from './GraphQLError.js';
/**
* Given an arbitrary value, presumably thrown while attempting to execute a
* GraphQL operation, produce a new GraphQLError aware of the location in the
* document responsible for the original Error.
*/
export declare function locatedError(rawOriginalError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | undefined | null, path?: Maybe<ReadonlyArray<string | number>>): GraphQLError;