Skip to content

TruncatedError

Defined in: packages/distillate/src/core/serialize.ts:80

Thrown when a frame is shorter than its header plus trailer, 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.

new TruncatedError(message?): TruncatedError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1082

string

TruncatedError

SerializationError.constructor

new TruncatedError(message?, options?): TruncatedError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

TruncatedError

SerializationError.constructor

optional cause?: unknown

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26

SerializationError.cause


message: string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077

SerializationError.message


readonly name: "TruncatedError" = "TruncatedError"

Defined in: packages/distillate/src/core/serialize.ts:82

Discriminates this error from other Errors.

SerializationError.name


optional stack?: string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078

SerializationError.stack