#
Class: gqlessError#
HierarchyError
↳ gqlessError
#
Constructors#
constructor+ new gqlessError(message
: string, __namedParameters?
: { caller?
: Function ; graphQLErrors?
: readonly GraphQLError[] ; otherError?
: unknown }): gqlessError
#
Parameters:Name | Type |
---|---|
message | string |
__namedParameters | object |
__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:Name | Type |
---|---|
err | Error |
stackTraces | CallSite[] |
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
Name | Type |
---|---|
graphQLErrors | undefined | readonly GraphQLError[] |
message | string |
otherError | unknown |
Defined in: packages/gqless/src/Error/index.ts:29
#
captureStackTraceâ–¸ Static
captureStackTrace(targetObject
: object, constructorOpt?
: Function): void
Create .stack property on a target object
#
Parameters:Name | Type |
---|---|
targetObject | object |
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â–¸ Static
create(error
: unknown, caller?
: Function): gqlessError
#
Parameters:Name | Type |
---|---|
error | unknown |
caller? | Function |
Returns: gqlessError
Defined in: packages/gqless/src/Error/index.ts:37
#
fromGraphQLErrorsâ–¸ Static
fromGraphQLErrors(errors
: readonly GraphQLError[]): gqlessError
#
Parameters:Name | Type |
---|---|
errors | readonly GraphQLError[] |
Returns: gqlessError
Defined in: packages/gqless/src/Error/index.ts:55