Your IP : 216.73.216.52


Current Path : /home/deltalab/PMS/partner-manager-backend/node_modules/graphql/error/
Upload File :
Current File : //home/deltalab/PMS/partner-manager-backend/node_modules/graphql/error/locatedError.d.ts

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;