TruncatedError
Defined in: packages/distillate/src/core/serialize.ts:132
Thrown when a frame is shorter than its header plus trailer, when the body length its header declares disagrees with the bytes actually present, or when its body length does not match the length its declared params imply. The bytes were cut short in transit or storage; re-fetch the whole frame.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TruncatedError(
message?):TruncatedError
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”TruncatedError
Inherited from
Section titled “Inherited from”SerializationError.constructor
Constructor
Section titled “Constructor”new TruncatedError(
message?,options?):TruncatedError
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”TruncatedError
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:"TruncatedError"="TruncatedError"
Defined in: packages/distillate/src/core/serialize.ts:134
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