API reference
classes
Unrecognizedfetchpolicyerror

Class: UnrecognizedFetchPolicyError

Hierarchy

  • TriplitError

    UnrecognizedFetchPolicyError

Constructors

constructor

new UnrecognizedFetchPolicyError(policy, ...args): UnrecognizedFetchPolicyError

Parameters

NameType
policystring
...argsany[]

Returns

UnrecognizedFetchPolicyError

Overrides

TriplitError.constructor

Defined in

packages/client/src/errors.ts:4 (opens in a new tab)

Properties

cause

Optional cause: unknown

Inherited from

TriplitError.cause

Defined in

node_modules/typescript/lib/lib.es2022.error.d.ts:24


contextMessage

Optional contextMessage: string

Inherited from

TriplitError.contextMessage

Defined in

packages/db/dist/types/errors.d.ts:16


message

message: string

Inherited from

TriplitError.message

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1068


name

name: string

Inherited from

TriplitError.name

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1067


stack

Optional stack: string

Inherited from

TriplitError.stack

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1069


status

status: number

Inherited from

TriplitError.status

Defined in

packages/db/dist/types/errors.d.ts:15


prepareStackTrace

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

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces (opens in a new tab)

Inherited from

TriplitError.prepareStackTrace

Defined in

packages/client/node_modules/@types/node/globals.d.ts:11


stackTraceLimit

Static stackTraceLimit: number

Inherited from

TriplitError.stackTraceLimit

Defined in

packages/client/node_modules/@types/node/globals.d.ts:13

Methods

toJSON

toJSON(): Object

Returns

Object

NameType
contextMessageundefined | string
messagestring
namestring
statusnumber

Inherited from

TriplitError.toJSON

Defined in

packages/db/dist/types/errors.d.ts:19


toString

toString(): string

Returns

string

Inherited from

TriplitError.toString

Defined in

packages/db/dist/types/errors.d.ts:18


captureStackTrace

captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

TriplitError.captureStackTrace

Defined in

packages/client/node_modules/@types/node/globals.d.ts:4