Skip to content

Documentation / @etherfold/core / IngestionUnavailableError

Class: IngestionUnavailableError ​

Defined in: packages/core/src/errors.ts:783

A receiver that could not be reached or could not answer right now.

Kept apart from IngestionRefusedError because the correct response is the opposite one: this is retried with backoff, that one is surfaced immediately. A 5xx, a dropped connection and a timeout are all this: the batch may or may not have been applied, and the sender does not need to know, because the cursor decides on the next attempt (a batch applied before the acknowledgement was lost earns a 409, which is a correction and not a duplicate).

Extends ​

  • Error

Constructors ​

Constructor ​

new IngestionUnavailableError(message, status?): IngestionUnavailableError

Defined in: packages/core/src/errors.ts:788

Parameters ​

message ​

string

status? ​

number

The transport's status when there was one; absent for a network-level failure.

Returns ​

IngestionUnavailableError

Overrides ​

Error.constructor

Properties ​

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: "IngestionUnavailableError" = 'IngestionUnavailableError'

Defined in: packages/core/src/errors.ts:784

Overrides ​

Error.name


retryable ​

readonly retryable: true = true

Defined in: packages/core/src/errors.ts:786

The one thrown by this package that IS worth another attempt.


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


status? ​

readonly optional status?: number

Defined in: packages/core/src/errors.ts:791

The transport's status when there was one; absent for a network-level failure.

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