Class ByteifySerializationError

The [[ByteifyError]] that happens because of an error with the serialization

Hierarchy

Constructors

  • The constructor of the [[ByteifySerializationError]] class.

    Parameters

    • message: string = ByteifySerializationError.DEFAULT_MESSAGE

      The message of the error

    • Optional nativeType: NativeType

      The native type of the value that was to be serialized

    • Optional endianess: ByteifyEndianess

      The byteify endianess that was to be used

    • Optional valueToSerialize: number | bigint

      The value that was to be serialized

    • Optional serializedResult: number[]

      The serialized value

    Returns ByteifySerializationError

Properties

cause?: unknown
endianess: null | ByteifyEndianess

The byteify endianess that was to be used

message: string
name: string
nativeType: null | NativeType

The native type of the value that was to be serialized

serializedResult: null | number[]

The serialized value

stack?: string
valueToSerialize: null | number | bigint

The value that was to be serialized

DEFAULT_MESSAGE: string = 'Error in byteify serialization'

The default message of the error

prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc