BadMagicError
Defined in: packages/distillate/src/core/serialize.ts:91
Thrown when a frame does not start with the four-byte AMQF magic, so it
was never produced by toBytes. Check that the bytes really are a
distillate frame and not another payload, a text encoding of one, or a
slice taken at the wrong offset.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BadMagicError(
message?):BadMagicError
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”BadMagicError
Inherited from
Section titled “Inherited from”SerializationError.constructor
Constructor
Section titled “Constructor”new BadMagicError(
message?,options?):BadMagicError
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”BadMagicError
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:"BadMagicError"="BadMagicError"
Defined in: packages/distillate/src/core/serialize.ts:93
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