Skip to main content

Hierarchy

  • Error

    GQlessError

Constructors#

constructor#

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

Parameters:#

NameTypeDefault value
messagestring-
__namedParametersobject{}
__namedParameters.caller?Function-
__namedParameters.graphQLErrors?readonly GraphQLError[]-
__namedParameters.otherError?unknown-

Returns: GQlessError

Overrides: Error.constructor

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: Error.message

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


name#

name: string

Inherited from: Error.name

Defined in: node_modules/.pnpm/typescript@4.2.4/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: Error.stack

Defined in: node_modules/.pnpm/typescript@4.2.4/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.41/node_modules/@types/node/globals.d.ts:11

Inherited from: Error.prepareStackTrace

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


stackTraceLimit#

Static stackTraceLimit: number

Inherited from: Error.stackTraceLimit

Defined in: node_modules/.pnpm/@types+node@14.14.41/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: Error.captureStackTrace

Defined in: node_modules/.pnpm/@types+node@14.14.41/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 github-actions[bot]