Skip to content

ReservedBitsError

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

Thrown when a frame sets a header bit this format reserves: the flags high nibble, the byte at offset 7, or the word at offset 12. Only a newer writer puts anything there, and reading its frame under this release’s meaning would give a wrong answer with no error. Upgrade distillate on the reading side; a reader must be at least as new as the producer.

new ReservedBitsError(message?): ReservedBitsError

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

string

ReservedBitsError

SerializationError.constructor

new ReservedBitsError(message?, options?): ReservedBitsError

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

string

ErrorOptions

ReservedBitsError

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: "ReservedBitsError" = "ReservedBitsError"

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

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