Class ByteifySerializationWrongTypeError

The ByteifySerializationError that happens because the input is of the wrong type

Hierarchy

Constructors

  • The constructor of the ByteifySerializationWrongTypeError class.

    Parameters

    • message: string = ByteifySerializationWrongTypeError.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

    • Optional givenType: string

      The given type of the value that was to be serialized

    • Optional expectedType: string

      The expected type of the value that was to be serialized

    Returns ByteifySerializationWrongTypeError

Properties

endianess: null | ByteifyEndianess

The byteify endianess that was to be used

expectedType: null | string

The expected type of the value that was to be serialized

givenType: null | string

The given type of the value that was to be serialized

nativeType: null | NativeType

The native type of the value that was to be serialized

serializedResult: null | number[]

The serialized value

valueToSerialize: null | number | bigint

The value that was to be serialized

Generated using TypeDoc