• Generates a Hedera error response based on the provided key, context, and additional data.

    Type Parameters

    • T

    Parameters

    • key: string

      Key representing the specific error type.

    • Optional context: string | number

      Contextual information for the error (optional).

    • Optional data: T

      Additional data to include in the error response (optional).

    Returns HederaErrorResponse<T>

    A HederaErrorResponse object with the specified code, message, and additional data.

Generated using TypeDoc