SerializationError
Defined in: packages/distillate/src/core/serialize.ts:70
Base class for every defect fromBytes and fromJSON reject. Thrown
directly when a JSON envelope is malformed: not an object, missing the
"distillate" tag, missing data, or data that is not valid base64.
Catch this to handle any decode failure at once, or a subclass to tell the
causes apart. The input is corrupt or foreign, so discard it; retrying the
same bytes cannot succeed.
Extends
Section titled “Extends”Error
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SerializationError(
message?):SerializationError
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”SerializationError
Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new SerializationError(
message?,options?):SerializationError
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”SerializationError
Inherited from
Section titled “Inherited from”Error.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”Error.cause
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”Error.message
readonlyname:string="SerializationError"
Defined in: packages/distillate/src/core/serialize.ts:72
Discriminates this error from other Errors.
Overrides
Section titled “Overrides”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack