Documentation / @etherfold/core / CannotPauseFollowerError
Class: CannotPauseFollowerError ​
Defined in: packages/core/src/container.ts:526
PAUSING A FOLLOWER, which is not a thing a cap can express.
A pause CAPS the block a generation fetches up to, and a follower fetches nothing at all: it advances exactly as far as the STREAM it folds and holds no toBlock of its own. So the cap would sit there governing a verb that never runs, and pauseState would report a drain that is not happening -- a pause that lies, which is worse than a refusal, because the whole point of draining is knowing that nothing a reorg can invalidate is still being answered.
What stops a follower is stopping its STREAM, which is the writer's business (ADR-0044: a follower's whole claim is that its state is a function of the stream, so the writer's pause is felt by everything following it), or deleting it. Pausing a follower ON ITS OWN TERMS needs the follow path to keep replaying its window while it drains, and that is the follower's landable rather than a cap.
Extends ​
Error
Constructors ​
Constructor ​
new CannotPauseFollowerError(
id):CannotPauseFollowerError
Defined in: packages/core/src/container.ts:529
Parameters ​
id ​
Returns ​
CannotPauseFollowerError
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
id ​
readonlyid:GenerationId
Defined in: packages/core/src/container.ts:529
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:"CannotPauseFollowerError"='CannotPauseFollowerError'
Defined in: packages/core/src/container.ts:527
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
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