Skip to content

@armada/sdk / index / InstanceClosedError

Class: InstanceClosedError ​

Defined in: src/errors.ts:176

The SDK instance was closed, the wallet was disposed, or the storage adapter was closed (SPEC §4.1). Every call after sdk.close() or wallet.dispose() throws it, and so does a sync cancelled by one; a closed adapter throws it until it's opened again.

Extends ​

Constructors ​

Constructor ​

new InstanceClosedError(message, options?): InstanceClosedError

Defined in: src/errors.ts:6

Parameters ​

message ​

string

options? ​
cause? ​

unknown

Returns ​

InstanceClosedError

Inherited from ​

ArmadaError.constructor

Properties ​

code ​

readonly code: "INSTANCE_CLOSED" = 'INSTANCE_CLOSED'

Defined in: src/errors.ts:177

Overrides ​

ArmadaError.code