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?
optionalcause?: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?
readonlyoptionalcode?:string
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:24
details?
readonlyoptionaldetails?:Record<string,unknown>
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:27
headers?
readonlyoptionalheaders?: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?
readonlyoptionalparam?:string
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:26
requestId?
readonlyoptionalrequestId?:string
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:28
retryAfter?
readonlyoptionalretryAfter?:number
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:29
stack?
optionalstack?: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?
readonlyoptionalstatusCode?:number
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:23
timestamp
readonlytimestamp:Date
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/errors.ts:31
type?
readonlyoptionaltype?: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