Documentation / @etherfold/core / GenerationIsCanonicalError
Class: GenerationIsCanonicalError ​
Defined in: packages/core/src/generation/registry.ts:462
The canonical generation cannot be deleted while it is canonical.
Deleting what answers reads would blank the app for exactly as long as a re-index takes, which is the outage this whole design exists to remove. Moving the pointer is one small write, so the cost of requiring it first is one call, and it is a call whose consequence the operator can see before the bytes go.
Extends ​
Error
Constructors ​
Constructor ​
new GenerationIsCanonicalError(
id):GenerationIsCanonicalError
Defined in: packages/core/src/generation/registry.ts:465
Parameters ​
id ​
Returns ​
GenerationIsCanonicalError
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/generation/registry.ts:465
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:"GenerationIsCanonicalError"='GenerationIsCanonicalError'
Defined in: packages/core/src/generation/registry.ts:463
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