Skip to main content

Class: TanqoryError

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:22

Base error class for all Tanqory SDK errors

Extends​

  • Error

Extended by​

Constructors​

Constructor​

new TanqoryError(message, options?): TanqoryError

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:33

Parameters​

message​

string

options?​

TanqoryErrorOptions = {}

Returns​

TanqoryError

Overrides​

Error.constructor

Properties​

cause?​

optional cause?: unknown

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from​

Error.cause


code?​

readonly optional code?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:24


details?​

readonly optional details?: Record<string, unknown>

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:27


headers?​

readonly optional headers?: Record<string, string>

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:30


message​

message: string

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from​

Error.message


name​

name: string

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1074

Inherited from​

Error.name


param?​

readonly optional param?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:26


requestId?​

readonly optional requestId?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:28


retryAfter?​

readonly optional retryAfter?: number

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:29


stack?​

optional stack?: string

Defined in: tanqory-platform-docs/node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from​

Error.stack


statusCode?​

readonly optional statusCode?: number

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:23


timestamp​

readonly timestamp: Date

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:31


type?​

readonly optional type?: string

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:25

Methods​

toJSON()​

toJSON(): object

Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:52

Returns​

object

code​

code: string

details​

details: Record<string, unknown>

message​

message: string

name​

name: string

param​

param: string

requestId​

requestId: string

statusCode​

statusCode: number

timestamp​

timestamp: Date

type​

type: string