Skip to content

UnknownVersionError

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

Thrown when a frame or JSON envelope declares a format version this release does not read. The remedy depends on which side is older. A frame newer than this release needs distillate upgraded on the reading side. A frame older than it is readable by no current release, since each reads exactly one format version; rebuild it from the source keys. Being at least as new as the producer is necessary, not sufficient.

new UnknownVersionError(message?): UnknownVersionError

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

string

UnknownVersionError

SerializationError.constructor

new UnknownVersionError(message?, options?): UnknownVersionError

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

string

ErrorOptions

UnknownVersionError

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

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

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