mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-11-29 08:49:40 +00:00
17 lines
521 B
TypeScript
17 lines
521 B
TypeScript
|
import { Maybe } from '../jsutils/Maybe';
|
||
|
|
||
|
import { ASTNode } from '../language/ast';
|
||
|
|
||
|
import { GraphQLError } from './GraphQLError';
|
||
|
|
||
|
/**
|
||
|
* 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 function locatedError(
|
||
|
rawOriginalError: any,
|
||
|
nodes: ASTNode | ReadonlyArray<ASTNode> | undefined,
|
||
|
path?: Maybe<ReadonlyArray<string | number>>,
|
||
|
): GraphQLError;
|