UNPKG

547 BTypeScriptView Raw
1import type { Maybe } from '../jsutils/Maybe';
2import type { ASTNode } from '../language/ast';
3import { GraphQLError } from './GraphQLError';
4/**
5 * Given an arbitrary value, presumably thrown while attempting to execute a
6 * GraphQL operation, produce a new GraphQLError aware of the location in the
7 * document responsible for the original Error.
8 */
9export declare function locatedError(
10 rawOriginalError: unknown,
11 nodes: ASTNode | ReadonlyArray<ASTNode> | undefined | null,
12 path?: Maybe<ReadonlyArray<string | number>>,
13): GraphQLError;