Skip to content

Documentation / @etherfold/browser / IndexerPortClosedError

Class: IndexerPortClosedError ​

Defined in: packages/browser/src/host/restart.ts:152

THE REFUSAL A CALL GETS WHEN THE TAB'S OWN PORT IS CLOSED: made after IndexerPort.close(), or still in flight when it was called.

Its own class beside IndexerHostDiedError because the two mean different things to a caller: the host did not go away, this tab let go of it. The worker executor (@etherfold/graphql/worker) tells them apart to name a transport failure port-closed rather than host-gone (ADR-0099). Raised in the tab, so instanceof is exact; the name is pinned all the same.

Extends ​

  • Error

Constructors ​

Constructor ​

new IndexerPortClosedError(portCase, inFlight): IndexerPortClosedError

Defined in: packages/browser/src/host/restart.ts:157

Parameters ​

portCase ​

PortCaseName

inFlight ​

boolean

Returns ​

IndexerPortClosedError

Overrides ​

Error.constructor

Properties ​

case ​

readonly case: PortCaseName

Defined in: packages/browser/src/host/restart.ts:155

WHICH CASE the refused call was on.


cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from ​

Error.cause


message ​

message: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from ​

Error.message


name ​

readonly name: "IndexerPortClosedError" = 'IndexerPortClosedError'

Defined in: packages/browser/src/host/restart.ts:153

Overrides ​

Error.name


stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.stack

Methods ​

isError() ​

static isError(error): error is Error

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

error ​

unknown

Returns ​

error is Error

Inherited from ​

Error.isError