ChecksumError
Defined in: packages/distillate/src/core/serialize.ts:121
Thrown when a frame’s CRC32 trailer does not match its contents, so the bytes were corrupted after they were written. Discard them and re-fetch; the payload cannot be trusted even where it still parses.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ChecksumError(
message?):ChecksumError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”ChecksumError
Inherited from
Section titled “Inherited from”SerializationError.constructor
Constructor
Section titled “Constructor”new ChecksumError(
message?,options?):ChecksumError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”ChecksumError
Inherited from
Section titled “Inherited from”SerializationError.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”message
Section titled “message”message:
string
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”
readonlyname:"ChecksumError"="ChecksumError"
Defined in: packages/distillate/src/core/serialize.ts:123
Discriminates this error from other Errors.
Overrides
Section titled “Overrides”stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078