Skip to main content

GraphQLErrorList

Hierarchy

  • Error
    • GraphQLErrorList

Index

Constructors

constructor

  • new GraphQLErrorList(errors: readonly GraphQLError[], message?: string): GraphQLErrorList
  • Parameters

    • errors: readonly GraphQLError[]
    • optionalmessage: string

    Returns GraphQLErrorList

Properties

optionalcause

cause?: unknown

publicerrors

errors: readonly GraphQLError[]

message

message: string

name

name: string

optionalstack

stack?: string

staticoptionalprepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

@see

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

staticstackTraceLimit

stackTraceLimit: number

Methods

toString

  • toString(): string
  • Returns string

staticcaptureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object


    Parameters

    • targetObject: object
    • optionalconstructorOpt: Function

    Returns void