Skip to main content

Class: gqlessError#

Hierarchy#

  • Error

    ↳ gqlessError

Constructors#

constructor#

+ new gqlessError(message: string, __namedParameters?: { caller?: Function ; graphQLErrors?: readonly GraphQLError[] ; otherError?: unknown }): gqlessError

Parameters:#

NameType
messagestring
__namedParametersobject
__namedParameters.caller?Function
__namedParameters.graphQLErrors?readonly GraphQLError[]
__namedParameters.otherError?unknown

Returns: gqlessError

Overrides: void

Defined in: packages/gqless/src/Error/index.ts:5

Properties#

graphQLErrors#

• Optional graphQLErrors: readonly GraphQLError[]

Defined in: packages/gqless/src/Error/index.ts:4


message#

• message: string

Inherited from: void

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


name#

• name: string

Inherited from: void

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


otherError#

• Optional otherError: unknown

Defined in: packages/gqless/src/Error/index.ts:5


stack#

• Optional stack: string

Inherited from: void

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


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/.pnpm/@types/node@14.14.37/node_modules/@types/node/globals.d.ts:11

Inherited from: void

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


stackTraceLimit#

â–ª Static stackTraceLimit: number

Inherited from: void

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

Methods#

toJSON#

â–¸ toJSON(): object

Returns: object

NameType
graphQLErrorsundefined | readonly GraphQLError[]
messagestring
otherErrorunknown

Defined in: packages/gqless/src/Error/index.ts:29


captureStackTrace#

â–¸ StaticcaptureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Parameters:#

NameType
targetObjectobject
constructorOpt?Function

Returns: void

Inherited from: void

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


create#

â–¸ Staticcreate(error: unknown, caller?: Function): gqlessError

Parameters:#

NameType
errorunknown
caller?Function

Returns: gqlessError

Defined in: packages/gqless/src/Error/index.ts:37


fromGraphQLErrors#

â–¸ StaticfromGraphQLErrors(errors: readonly GraphQLError[]): gqlessError

Parameters:#

NameType
errorsreadonly GraphQLError[]

Returns: gqlessError

Defined in: packages/gqless/src/Error/index.ts:55

Last updated on by Pablo Sáez