Skip to main content

runtime_src.graphqlmeshsdkerror

Class: GraphQLMeshSdkError<Data, Variables\>#

runtime/src.GraphQLMeshSdkError

Type parameters#

NameDefault
Dataany
Variablesany

Hierarchy#

  • Error

    GraphQLMeshSdkError

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

+ new GraphQLMeshSdkError<Data, Variables\>(errors: readonly GraphQLError[], document: DocumentNode, variables: Variables, data: Data): GraphQLMeshSdkError<Data, Variables\>

Type parameters:#

NameDefault
Dataany
Variablesany

Parameters:#

NameType
errorsreadonly GraphQLError[]
documentDocumentNode
variablesVariables
dataData

Returns: GraphQLMeshSdkError<Data, Variables\>

Overrides: Error.constructor

Defined in: packages/runtime/src/get-mesh.ts:231

Properties#

data#

data: Data


document#

document: DocumentNode


errors#

errors: readonly GraphQLError[]


message#

message: string

Inherited from: Error.message

Defined in: node_modules/typescript/lib/lib.es5.d.ts:974


name#

name: string

Inherited from: Error.name

Defined in: node_modules/typescript/lib/lib.es5.d.ts:973


stack#

Optional stack: string

Inherited from: Error.stack

Defined in: node_modules/typescript/lib/lib.es5.d.ts:975


variables#

variables: Variables


prepareStackTrace#

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

Optional override for formatting stack traces

see https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration:#

▸ (err: Error, stackTraces: CallSite[]): any

Parameters:#

NameType
errError
stackTracesCallSite[]

Returns: any

Defined in: node_modules/@types/node/globals.d.ts:11

Inherited from: Error.prepareStackTrace

Defined in: node_modules/@types/node/globals.d.ts:11


stackTraceLimit#

Static stackTraceLimit: number

Inherited from: Error.stackTraceLimit

Defined in: node_modules/@types/node/globals.d.ts:13

Methods#

captureStackTrace#

StaticcaptureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Parameters:#

NameType
targetObjectobject
constructorOpt?Function

Returns: void

Inherited from: Error.captureStackTrace

Defined in: node_modules/@types/node/globals.d.ts:4