Documentation / @etherfold/processor-entities / SnapshotProcessorMismatchError
Class: SnapshotProcessorMismatchError ​
Defined in: packages/state-store/dist/snapshot.d.ts:20
A snapshot computed by different logic than the processor about to use it.
Refused, never loaded. The rows are a FUNCTION of the processor that produced them, so adopting them under another processor is adopting another program's conclusions: the handlers may have changed what a field means, and the entity declarations may have changed what a row IS. Nothing downstream could tell the resulting state apart from a correct one.
Extends ​
Error
Constructors ​
Constructor ​
new SnapshotProcessorMismatchError(
expected,found,takenAt):SnapshotProcessorMismatchError
Defined in: packages/state-store/dist/snapshot.d.ts:28
Parameters ​
expected ​
string
The identity of the fold that is about to index, as its arrival derived it.
found ​
string
The identity the snapshot says computed it.
takenAt ​
number
The block the snapshot was taken at, so a message can say which one.
Returns ​
SnapshotProcessorMismatchError
Overrides ​
Error.constructor
Properties ​
cause? ​
optionalcause?:unknown
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from ​
Error.cause
expected ​
readonlyexpected:string
Defined in: packages/state-store/dist/snapshot.d.ts:22
The identity of the fold that is about to index, as its arrival derived it.
found ​
readonlyfound:string
Defined in: packages/state-store/dist/snapshot.d.ts:24
The identity the snapshot says computed it.
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:"SnapshotProcessorMismatchError"="SnapshotProcessorMismatchError"
Defined in: packages/state-store/dist/snapshot.d.ts:27
Overrides ​
Error.name
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
takenAt ​
readonlytakenAt:number
Defined in: packages/state-store/dist/snapshot.d.ts:26
The block the snapshot was taken at, so a message can say which one.
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