Documentation / @etherfold/core / GenesisCheckUnavailableError
Class: GenesisCheckUnavailableError ​
Defined in: packages/core/src/errors.ts:723
A genesis read that never completed: a timeout, a rate limit, a dropped connection, a JSON-RPC error.
The third of the three, and the common one. It used to propagate out of the load path as a bare failure indistinguishable from a real mismatch, which means a flaky endpoint at startup read as "you are pointed at the wrong chain". Nothing was learnt about the chain here, so nothing is claimed about it, and unlike its two siblings this one IS worth another attempt -- the same position IngestionUnavailableError holds on the ingestion path.
Extends ​
Error
Constructors ​
Constructor ​
new GenesisCheckUnavailableError(
expectedGenesisHash,cause):GenesisCheckUnavailableError
Defined in: packages/core/src/errors.ts:728
Parameters ​
expectedGenesisHash ​
string
The genesisHash the source declares, which is what could not be checked.
cause ​
unknown
What the provider (or the transport) threw, kept so the cause is not retold as prose.
Returns ​
GenesisCheckUnavailableError
Overrides ​
Error.constructor
Properties ​
cause ​
readonlycause:unknown
Defined in: packages/core/src/errors.ts:732
What the provider (or the transport) threw, kept so the cause is not retold as prose.
Inherited from ​
Error.cause
expectedGenesisHash ​
readonlyexpectedGenesisHash:string
Defined in: packages/core/src/errors.ts:730
The genesisHash the source declares, which is what could not be checked.
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 ​
readonlyname:"GenesisCheckUnavailableError"='GenesisCheckUnavailableError'
Defined in: packages/core/src/errors.ts:724
Overrides ​
Error.name
retryable ​
readonlyretryable:true=true
Defined in: packages/core/src/errors.ts:726
Nothing was learnt about the chain, and the endpoint may well answer next time.
stack? ​
optionalstack?: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() ​
staticisError(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