Skip to content

@loktin/sdk / index / LoktinError

Class: LoktinError ​

Defined in: @loktin/sdk/dist/errors.d.ts:8

Base class of every error the SDK throws. Check code to tell them apart.

Extends ​

  • Error

Extended by ​

Constructors ​

Constructor ​

new LoktinError(code, message, options?): LoktinError

Defined in: @loktin/sdk/dist/errors.d.ts:11

Parameters ​

code ​

LoktinErrorCode

message ​

string

options? ​

ErrorOptions

Returns ​

LoktinError

Overrides ​

Error.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: typescript/lib/lib.es2022.error.d.ts:24

Inherited from ​

Error.cause


code ​

readonly code: LoktinErrorCode

Defined in: @loktin/sdk/dist/errors.d.ts:10


message ​

message: string

Defined in: typescript/lib/lib.es5.d.ts:1075

Inherited from ​

Error.message


name ​

readonly name: string

Defined in: @loktin/sdk/dist/errors.d.ts:9

Overrides ​

Error.name


stack? ​

optional stack?: string

Defined in: typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.stack

Built on Stellar