Function fromError

  • Serializes an Error instance into a JSONValue object suitable for RPC.

    Parameters

    • error: any

      The Error instance to serialize.

    Returns JSONValue

    The serialized ErrorRPC instance.

    Throws

    If the error is an instance of Symbol, BigInt or Function.

Generated using TypeDoc